<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <title new="<fmt:message code="main.newwork" />" todo="办理工作"><fmt:message
            code="roleAuthorization.th.ViewDetails"/></title>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type"
          content="text/html; charset=utf-8 ? MYOA_CHARSET : htmlspecialchars($HTML_PAGE_CHARSET))?>"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=0.3, user-scalable=0, minimum-scale=0, maximum-scale=5.0,user-scalable=yes">
    <link rel="stylesheet" type="text/css" href="../../css/workflow/m_reset.css">
    <link rel="stylesheet" type="text/css" href="../../css/workflow/work/new_work.css">
    <link rel="stylesheet" type="text/css" href="../../css/workflow/work/bootstrap.css">
    <link rel="stylesheet" href="../../lib/layui-v2.2.5/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="../../css/workflow/work/handle.css"/>
    <%--<link rel="stylesheet" type="text/css" href="/lib/img2blob/css/normalize.css" />--%>
    <%--<link rel="stylesheet" type="text/css" href="/lib/img2blob/css/demo.css" />--%>
    <script src="/js/common/language.js"></script>
    <script src="../../js/workflow/work/ProjectControl.js"></script>
    <script type="text/javascript" src="/lib/jQuery-File-Upload-master/jquery-1.8.3.min.js"></script>
    <script src="../../lib/layer/layer.js?20201106"></script>
    <script src="../../lib/laydate/laydate.js"></script>
    <script src="../../js/jquery/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../lib/jquery.form.min.js"></script>
    <script type="text/javascript" src="../../lib/jquery.jqprint-0.3.js"></script>
    <script type="text/javascript" src="../../lib/jquery-migrate-1.1.0.js"></script>
    <script src="../../js/base/base.js?20191115.2"></script>
    <script src="../../js/mustache.min.js"></script>
    <script src="../../lib/layui-v1.0.9_rls/layui/layui.js"></script>
    <script src="/lib/ueditor/ueditor.config.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/ueditor/ueditor.all.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/ueditor/UEcontroller.js" type="text/javascript" charset="utf-8"></script>
    <%--无主办会签问题--%>
    <script src="../../js/base/workformbase.js"></script>
    <script src="/js/workflow/work/Loadwebsign.js?20191112.1"></script>
    <script src="/js/workflow/work/websign_main.js?20190626.1"></script>
    <script src="../../js/workflow/work/workform.js?20191121.2"></script>
    <script src="../../lib/jquery.form.min.js"></script>
    <script src="/lib/img2blob/js/img2blob.js?20190731.2" type="text/javascript"></script>
    <script type="text/javascript" src="/js/workflow/work/writeSign.js?20190926.1"></script>

    <!-- 金格签章 -->

    <link rel="stylesheet" href="../../lib/kinggrid/dialog/artDialog/ui-dialog.css">
    <link rel="stylesheet" href="../../lib/kinggrid/core/kinggrid.plus.css">

    <script type="text/javascript" src="../../lib/kinggrid/core/kinggrid.min.js"></script>
    <script type="text/javascript" src="../../lib/kinggrid/core/kinggrid.plus.min.js"></script>
    <script type="text/javascript" src="../../lib/kinggrid/dialog/artDialog/dialog.js"></script>

    <!-- html签章核心JS -->
    <script type="text/javascript" src="../../lib/kinggrid/signature.min.js"></script>
    <!-- PC端附加功能 -->
    <script type="text/javascript" src="../../lib/kinggrid/signature.pc.min.js"></script>
    <%--<!-- 移动端端附加功能 -->--%>
    <%--<link rel="stylesheet" href="../../lib/kinggrid/core/kinggrid.plus.mobile.css">--%>
    <%--<script type="text/javascript" src="../../lib/kinggrid/signature.mobile.min.js"></script>--%>
    <!-- 手写端附加功能 -->

    <script type="text/javascript" src="../../lib/kinggrid/signature_pad.min.js"></script>
    <script type="text/javascript" src="../../lib/kinggrid/jquery.timer.dev.js"></script>

    <script type="text/javascript" src="/js/workflow/work/macroSign.js?20191115.1"></script>
</head>
<style type="text/css">
    body {
        -webkit-user-select: auto !important;
        user-select: auto !important;
    }

    input, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
        min-height: 20px;
        background-color: #ffffff;
        border: 1px solid #cccccc;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        -webkit-transition: border linear .2s, box-shadow linear .2s;
        -moz-transition: border linear .2s, box-shadow linear .2s;
        -o-transition: border linear .2s, box-shadow linear .2s;
        transition: border linear .2s, box-shadow linear .2s;
    }

    input, textarea, .uneditable-input {
        width: auto;
    }

    select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
        display: inline-block;
        padding: 4px 6px;
        font-size: 13px;
        line-height: 20px;
        color: #000;
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        vertical-align: middle;
    }

    #a2 select, #a2 input, #a2 textarea, #a2 input[type="text"], #a2 input[type="password"], #a2 input[type="datetime"], #a2 input[type="datetime-local"], #a2 input[type="date"], #a2 input[type="month"], #a2 input[type="time"], #a2 input[type="week"], #a2 input[type="number"], #a2 input[type="email"], #a2 input[type="url"], #a2 input[type="search"], #a2 input[type="tel"], #a2 input[type="color"], #a2 .uneditable-input {
        background-color: #fff9c1;
    }

    #a2 input[type="button"] {
        background: url(/img/form/btn_a.png) no-repeat;
    }

    .num input {
        background-color: #fff9c1;
    }

    input[disabled], select[disabled], textarea[disabled], select[readonly], textarea[readonly] {
        cursor: not-allowed;
        background-color: #eeeeee !important;
    }

    textarea[data-type=deptselect], textarea[data-type=userselect], textarea.deptselect, textarea.userselect {
        background-color: #fff9c1 !important;
    }

    body {
        font-size: 15px;
    }

    .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
        padding: 0px;
    }

    .hideen {
        display: none;
    }

    .content {
        margin-bottom: 52px;
    }

    /*设置原始元素样式*/
    #origin {
        margin: 100px auto; /*水平居中*/
        width: 200px;
        height: 100px;
        border: 1px dashed gray;
    }

    /*设置当前元素样式*/
    #current {
        width: 200px;
        height: 28px;
        line-height: 26px;
        color: white;
        background-color: #007BEE;
        text-align: center;
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg); /*兼容-webkit-引擎浏览器*/
        -moz-transform: rotate(0deg); /*兼容-moz-引擎浏览器*/
        transition: all 0.5s ease-in-out;

    }

    #current:hover {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
    }

    .feedbacktitle {
        position: relative;
        top: 3px;
        font-weight: bold;
        margin-left: 10px;
    }

    .feedbackcontent {
        margin-left: 23px;
    }

    .backinfo {
        width: 100%;
        height: 100px;
    }

    .cont {
        position: relative;
    }

    .downloadBtn {
        cursor: pointer;
        margin-left: 10px;
        display: inline-block;
    }

    .deletefileBtn {
        color: #e01919 !important;
        cursor: pointer;
        margin-left: 10px;
        display: inline-block;
    }

    .previewBtn {
        cursor: pointer;
        display: inline-block;
    }

    .editBtn {
        cursor: pointer;
        margin-left: 10px;
        display: inline-block;
    }

    #tab_c {
        width: 300px;
        height: 86%;
        /* display: none; */
        top: 43px;
        right: -316px;
        bottom: 0;
        position: fixed;
        background: #f8f8f8;
        overflow-y: scroll;
        box-shadow: -2px 0 20px 0px #c4c4c4;
        top: 47px;
        z-index: 9999999;
    }

    #tab_c, .cont_form {
        float: left;
    }

    .tab_one, #tab_ctwo {
        width: 100%;
        height: 100%;
    }

    .cont_ctwo {
        width: 100%;
        height: 100%;
    }

    .cont_cone {
        width: 100%;
        height: auto;
    }

    .tab_one {
        width: 100%;
        height: 200%;
    }

    .cont_cone li {
        width: 90%;
        height: 56px;
        margin: 10px auto;
        border: 1px solid #cccccc;
        border-radius: 3px;
        background: #fff;
    }

    .one_all, .two_all {
        width: 100%;
        min-height: 330px;
    }

    .one_all {
        border-bottom: 1px solid #ccc;
    }

    #tab_ctwo ul {
        width: 100%;
        height: 100%;
        display: none;
    }

    .item_logo, .item_word {
        float: left;
    }

    .item_logo {
        width: 40px;
        height: 40px;
        margin-left: 8px;
        margin-top: 8px;
    }

    .item_word {
        margin-top: 15px;
        margin-left: 8px;
        width: 195px;

    }

    .item_word .item_wordH1 {
        text-align: left;
        color: #292929;
        font-size: 10pt;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .item_wordH1:hover {
        color: #1772c0;
    }

    .item_wordH2 {
        font-size: 9pt;
        color: #1772c0;
        text-align: left;
        float: left;
        margin-left: 10px;
    }

    .position {
        position: absolute;
        right: 14px;
        top: 12px;
        clear: both;
    }

    .fujian_logo, .fujian_h1, .huiqian_logo, .huiqian_h1 {
        float: left;

    }

    .fujian_logo {
        margin-top: 14px;
        width: 18px;
    }

    .huiqian_logo {
        margin-top: 15px;
        width: 14px;
    }

    .fujian_h1, .huiqian_h1 {
        margin-left: 10px;
        font-size: 12pt;
        margin-top: 3px;
    }

    .huiqian_h1 {
        line-height: 33px;
        font-weight: bold;
        font-size: 11pt;
        margin-top: 6px;
    }

    .add_fujian {
        margin: 0 auto;
        width: 90%;
        height: 30px;
        border-radius: 3px;
        background: #458de5;
        color: #fff;
        text-align: center;
        line-height: 30px;
        outline: none;
        margin-left: 13px;
        border: 1px solid #458de5;
    }

    .cont_ctwo li {
        width: 90%;
        height: 105px;
        border-radius: 3px;
        margin: auto;
        border: 1px solid #cccccc;
        margin-top: 10px;
        background: #fff;
    }

    .huiqian_inp, .huiqian_send {
        float: left;
    }

    .hui_inp {
        width: 81% !important;
        margin-left: -56px !important;
    }

    .huiqian_inp {
        text-indent: 5px;
        width: 68%;
        height: 30px;
        border-radius: 3px;
        border: none;
        outline: none;
        text-align: left;
        border: 1px solid #cccccc;
        margin-left: 0px;
    }

    .huiqian_send {
        width: 58px;
        height: 32px;
        background: #ff9b30;
        color: #fff;
        margin-left: 210px;
        outline: none;
        border-radius: 3px;
        border: 1px solid #ff9b30;
    }

    .huiqian_word {
        height: 100%;
        margin-left: 12px;
        text-align: left;
    }

    .huiqian_word h1 {
        margin-top: 10px;
    }

    .huiqian_word .h2s {
        color: #999;
        word-spacing: 0;
        -webkit-touch-callout: initial;
        -webkit-user-select: auto;
        -khtml-user-select: auto;
        -moz-user-select: auto;
        -ms-user-select: auto;
        user-select: auto;
    }

    .huiqian_touxiang {
        margin-left: 8px;
    }

    .huiqian_touxiang, .huiqian_word {
        float: left;
    }

    .huiqian_word h3 {
        overflow: hidden; /*内容超出后隐藏*/
        text-overflow: ellipsis; /* 超出内容显示为省略号*/
        white-space: nowrap; /*文本不进行换行*/

    }

    .huiqian_touxiang {
        width: 40px;
        height: 40px;
    }

    .layui-layer-page .layui-layer-content {
        overflow-x: hidden !important;
    }

    .head {
        background: linear-gradient(to bottom, #196fe3, #2497e0);
        FILTER: progid: DXImageTransform . Microsoft . Gradient(gradientType = 0, startColorStr = #196fe3, endColorStr = #2497e0);
        background: -ms-linear-gradient(top, #196fe3, #2497e0);
        background: -moz-linear-gradient(top, #196fe3, #2497e0);
        background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#196fe3), to(#2497e0));
        background: -webkit-linear-gradient(top, #196fe3, #2497e0);
        background: -o-linear-gradient(top, #196fe3, #2497e0);
    }

    .step, .num {
        color: #fff;
    }

    .abs_right ul {
        background: #fff;
    }

    .fujian a, .huiqian a {
        font-weight: 300;
    }

    #tab_t ul li {
        font-weight: 300;
        position: relative;
    }

    .check {
        background: #5caeee;
    }

    /*.choose{
       color:#fff;
        background:#4889f0 !important;
    }*/
    #remind_name, #jingban {
        height: 20px !important;
    }

    .workflow-node {
        padding: 0px !important;
    }

    .prcsName {
        font-size: 14px;
        border: 1px solid #3691da;
        color: #3691da;
        margin-bottom: 10px;
        width: 100%;
        height: 35px;
        background: url("../../../img/workflow/work/add_work/uncheck.png") no-repeat 10px center;
    }

    .prcsName h1 {
    / / text-align: center;
        line-height: 35px;
        white-space: nowrap;
        margin-left: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 140px;
    }

    .prcsName_chang {
        border: none;
        color: #fff;
        background: #3691da url("../../../img/workflow/work/add_work/checked.png") no-repeat 10px center;
    }

    .fujian a, .huiqian a {
        width: 70px;
        height: 28px;
        display: block;
        text-decoration: none;
    }

    .top_one {
        position: absolute;
        top: 0px;
    }

    .top_two {
        position: absolute;
        top: 696px;
    }

    #tab_c {
        transition: all 1s ease 0s;
    }

    .list_table {
        border-width: medium;
        border-style: none;
        border-color: initial;
        border-collapse: collapse;
        word-wrap: break-word;
        /*table-layout: fixed;*/
    }

    .list_table .head {
        font-weight: 600;
    }

    .list_table th {
        border: #dddddd 1pt solid;
    }

    .list_table td {
        border-bottom: #7F7F7F 1pt solid;
        text-align: center;
        padding-bottom: 1px;
        padding-left: 1px;
        padding-right: 1px;
        vertical-align: middle;
        border-top: #7F7F7F 1pt solid;
        border: #dddddd 1pt solid;
        padding-top: 1px;
        padding: 0;
    }

    .list_table input, .list_table textarea, .list_table select {
        width: 95% !important;
        padding: 0;
        text-indent: 6px;
    }

    .list_table input[type="radio"], .list_table input[type="checkbox"] {
        width: auto !important;
    }

    .modal-body {
        overflow-y: hidden;
    }

    .layui-layer-btn- {
        border-top: 1px solid #d6d6d6;
        background-color: #f6f6f6;
    }

    .layui-layer-title {
        color: #fff;
        font-size: 16px;
        font-family: Microsoft yahei,Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
        background: linear-gradient(to bottom, #2077c6, #2495df);
        FILTER: progid: DXImageTransform . Microsoft . Gradient(gradientType = 0, startColorStr = #2077c6, endColorStr = #2495df);
        background: -ms-linear-gradient(top, #2077c6, #2495df); /* IE 10 */
        background: -moz-linear-gradient(top, #2077c6, #2495df); /*火狐*/
        background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2077c6), to(#2495df)); /* Safari 4-5, Chrome 1-9*/
        background: -webkit-linear-gradient(top, #2077c6, #2495df); /*Safari5.1 Chrome 10+*/
        background: -o-linear-gradient(top, #2077c6, #2495df); /*Opera 11.10+*/
    linear-gradient(to bottom, hsl(0, 80 %, 70 %), #2077c6); /* Standard syntax; must be last */
    }

    .orgAdd {
        display: inline-block;
        margin-top: 10px;
        cursor: pointer;
    }

    .orgClear {
        cursor: pointer;
    }

    .userSelectBtn {
        background: url(../../img/userSelectButton.png) no-repeat -4px 0px;
        width: 102px !important;
        height: 29px;
        cursor: pointer;
        margin-left: 15px;
        padding: 0;
        border-width: 0px;
        border-style: solid;
        border-radius: 4px;
        margin-top: 5px;
    }

    .userSelectBtn:hover {
        background: url(../../img/userSelect.png) no-repeat -5px -2px;
    }

    .tabAB {
        float: left;
        position: absolute;
        background-color: #fff;
        margin-left: 50%;
        width: 140px;
        height: 28px;
        margin-top: 8px;
        display: none;
        border-radius: 6px;
    }

    .tabAB ul {
        width: 141px;
        height: 28px;
        border: 1px solid #fff;
        border-radius: 5px;
        background: #fff;
    }

    .tabAB ul li {
        height: 28px;
        line-height: 28px;
        width: 70px;
        color: #4889f0;
        cursor: pointer;
        text-align: center;
        border-radius: 5px;
    }

    .tabAB ul li.active {
        background: #4889f0;
        color: #fff;
    }

    .tabAB ul li:hover {
        background: #4889f0;
        color: #fff;
    }

    .clearfix:after {
        clear: both;
        display: block;
        content: '';
    }

    .fl {
        float: left;
    }

    .fr {
        float: right;
    }

    .officialDocument {
        width: 100%;
        height: 99%;
    }

    .officialDocumentLeft {
        width: 15%;
        float: left;
        border: 1px solid #4889f0;
        min-height: 400px;
        border-radius: 4px;
        margin-left: 1%;
    }

    .officialDocumentLeft li {
        height: 50px;
        line-height: 49px;
        font-size: 14pt;
        text-align: center;
        font-weight: bold;
    }

    .officialDocumentLeft li:hover {
        background: #4889f0;
        color: #fff;
        cursor: pointer;
    }

    .officialDocumentLeft li.active {
        background: #4889f0;
        color: #fff;
    }

    .officialDocumentRight {
        width: 80%;
        border: 1px solid #4889f0;
        min-height: 400px;
        border-radius: 4px;
        float: right;
        margin-right: 2%;
    }

    .wrap {
        width: 100%;
        height: 100%;
        float: left;
        clear: both;
    }

    .left_side, .right_side {
        float: left;
    }

    .left_side {
        width: 15%;
        height: 100%;
        background: #eff5f2;
    }

    .right_side {
        width: 84%;
    }

    .btn {
        height: 36px;
        margin: auto;
        margin-top: 16px;
        line-height: 36px;
        color: #fff;
        text-align: center;
        cursor: pointer;
    }

    .big_btn {
        width: 70%;
        border: 1px solid rgb(5, 88, 197);
        background: #047dca;
    }

    .small_btn {
        width: 40%;
        background: #fe3131;
        border: 1px solid #D91600;
    }

    #EnterRevisionMode {
        width: 100%;
        height: 100%;
    }

    #EnterRevisionMode option {
        height: 36px;
    }

    .tipmsg {
        float: left;
        position: absolute;
        margin-left: 89px;
        margin-top: 27px;
        color: red;
        font-size: 11px;
    }

    .sms-bg-static {
        background: #d2d2d2 url("/img/images/sms-static.png") no-repeat left center;
    }

    .sms-bg-static.active {
        background: #3691da url(/img/images/sms.png) no-repeat left center;
    }

    .email-bg-static {
        background: #d2d2d2 url(/img/images/email-static.png) no-repeat left center;
    }

    .email-bg-static.active {
        background: #3691da url(/img/images/email.png) no-repeat left center;
    }

    .floatRight {
        position: absolute;
        top: -67px;
        width: 100px;
        height: auto;
        border: 1px solid #ccc;

    }

    .foot_rig ul li {
        color: #333;
    }

    .foot_rig ul li:hover {
        color: #fff;
    }

    #fenxiang {
        border-radius: inherit;
        background: url(/img/workflow/work/share.png) -3px -2px no-repeat;
    }

    #fenxiang:hover {
        color: #fff;
        background: url(/img/workflow/work/share2.png) -3px -2px no-repeat;
    }

    #guidang {
        border-radius: inherit;
        background: url(/img/workflow/work/guina.png) -3px -2px no-repeat;
    }

    #guidang:hover {
        color: #fff;
        background: url(/img/workflow/work/guina1.png) -3px -2px no-repeat;
    }

    #daochu {
        border-radius: inherit;
        background: url(/img/workflow/work/guina.png) -3px -2px no-repeat;
    }

    #daochu:hover {
        color: #fff;
        background: url(/img/workflow/work/guina1.png) -3px -2px no-repeat;
    }

    .foot_rig .floatRight > li {
        width: 100%;
        height: 28px;
    }

    .hide {
        display: none;
    }

    .show {
        display: block;
    }

    .turnboxselect {
        margin-top: -20px;
    }

    .turnboxselectli {
        padding: 18px;
    }

    .workflow-node-result {
        border: none;
        width: 90%;
        height: auto
    }

    .work-prcs-content {
        border: none;
    }

    .work-prcs-title, .work-msg-title {
        background-color: #d6e7f8;
        color: #023964;
        font-size: 14px;
        position: relative;
    }

    .workflow-procs-nodes-wrap {
        width: 170px;
        margin-left: 30px;
    }

    .spantitles {
        position: absolute;
        width: 81px;
        bottom: 5px;
        left: 43px;
        color: #fff;
        font-size: 16px;
        margin-left: 0;
    }

    .workflow-node-sp {
        font-size: 11pt;
        font-weight: bold;
        padding-left: 15px;
    }

    .user-tags {
        background: #fff;
    }

    a {
        color: #333;
    }

    .users-select-block {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .cytitle {
        position: absolute;
        left: 140px;
        font-size: 14px;
        color: #023964;
        top: 30px;
        width: 190px;
    }

    .work-msg-op-title {
        font-size: 14px;
        color: #023964;
        width: 266px;
        position: relative;
        margin: 5px 0px 5px 0px;
    }

    .sms-check, .email-check, .mobile-check {
        width: 88px;
        height: 30px;
    }

    .gjtitles {
        height: 30px;
        position: absolute;
        line-height: 30px;
    }

    .xuanzhong {
        cursor: pointer;
        position: absolute;
        left: 93px;
        top: 5px;
        color: #666666;
    }

    .xuanzhong1 {
        left: 193px;
    }

    .xuanzhongactive {
        color: #fff;
    }

    .fujian a, .huiqian a {
        color: #4889f0;
    }

    .rig_h1onexiayibu {
        background: url(/img/workflow/work/zhuanjiao1.png) no-repeat;
        color: #fff !important;
        width: 100px !important;
    }

    .rig_h1onexiayibu:hover {
        background: url(/img/workflow/work/zhuanjiao2.png) no-repeat;
    }

    .saveformlo {
        width: 75px !important;
    }

    #goback {
        height: 30px;
        color: #333;
        background: url(/img/workflow/work/back.png) no-repeat;
    }

    #goback:hover {
        color: #fff;
        background: url(/img/workflow/work/back2.png) no-repeat;
    }

    #goback h1 {
        width: 90px;
    }

    #addSign {
        height: 30px;
        width: 115px;
        color: #333;
        background: url(/img/workflow/work/addSign.png) no-repeat;
    }

    #addSign:hover {
        color: #fff;
        background: url(/img/workflow/work/addSignHover.png) no-repeat;
    }

    #addSign h1 {
        width: 135px;
    }

    #saveform {
        height: 30px;
        color: #333;
        background: url(/img/workflow/work/save.png) no-repeat;
    }

    #saveform:hover {
        background: url(/img/workflow/work/save2.png) no-repeat;
        color: #fff;
    }

    #saveformback {
        height: 30px;
        color: #333;
        width: 104px !important;
        background: url(/img/workflow/work/saveback.png) no-repeat;
    }

    #saveformback:hover {
        background: url(/img/workflow/work/saveback2.png) no-repeat;
        color: #fff;
    }

    #saveformback h1 {
        width: 80px;
        margin-left: 22px;
    }

    #cancleBtn {
        height: 30px;
        color: #333;
        width: 74px !important;
        background: url(/img/workflow/work/close.png) no-repeat;
    }

    #cancleBtn {
        width: 73px !important;
    }

    #cancleBtn:hover {
        background: url(/img/workflow/work/close2.png) no-repeat;
        color: #fff;
    }

    #cancleBtn h1 {
        width: 90px;
    }

    #more {
        z-index: 23;
        height: 30px;
        color: #333;
        width: 104px !important;
        background: url(/img/workflow/work/more.png) no-repeat;
    }

    #more:hover {
        background: url(/img/workflow/work/more2.png) no-repeat;
        color: #fff;
    }

    #more h1 {
        width: 80px;
        margin-left: 22px;
    }

    .zhuanjiao {
        height: 30px !important;
    }

    .rig_h1 {
        font-size: 14px;
        height: 30px;
        line-height: 30px;
    }

    #saveform1 {
        height: 30px;
        color: #333;
        background: url(/img/workflow/work/save.png) no-repeat;
    }

    .abs_right {
        top: 0;
    }

    #saveform1:hover {
        color: #fff;
        background: url(/img/workflow/work/save2.png) no-repeat;
    }

    #saveformback1 {
        display: none;
        height: 30px;
        color: #333;
        width: 104px !important;
        background: url(/img/workflow/work/saveback.png) no-repeat;
    }

    #saveformback1:hover {
        color: #fff;
        background: url(/img/workflow/work/saveback2.png) no-repeat;
    }

    #saveformback1 h1 {
        width: 80px;
        margin-left: 22px;
    }

    #cancleBtn1 {
        height: 30px;
        width: 74px !important;
        color: #333;
        background: url(/img/workflow/work/close.png) no-repeat;
    }

    #cancleBtn1 {
        width: 74px !important;
    }

    #cancleBtn1:hover {
        color: #fff;
        background: url(/img/workflow/work/close2.png) no-repeat;
    }

    #cancleBtn1 h1 {
        width: 90px;
    }

    #cancleBtn {
        width: 75px !important;
    }

    #flowImg {
        border: 1px solid #eaeaea;
    }

    #print {
        border: 1px solid #eaeaea;
    }

    #attach_name {
        border: 1px solid #eaeaea;
    }

    #flowImg:hover {
        border: 1px solid #4889f0;
        background: #fff;
    }

    #print:hover {
        border: 1px solid #4889f0;
        background: #fff;
    }

    #attach_name:hover {
        border: 1px solid #4889f0;
        background: #fff;
    }

    .item_logo img {
        width: 40px;
    }

    #oneUploadFile li:last-child {
        margin-bottom: 24px;
    }

    /*定义滚动条宽高及背景，宽高分别对应横竖滚动条的尺寸*/
    /*公告*/
    #tab_c::-webkit-scrollbar, .people_wenjian::-webkit-scrollbar {
        width: 3px;
        height: 16px;
        background-color: #f8f8f8;
    }

    /*定义滚动条的轨道，内阴影及圆角*/
    #tab_c::-webkit-scrollbar-track, .people_wenjian::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        border-radius: 10px;
        background-color: #f8f8f8;
    }

    /*定义滑块，内阴影及圆角*/
    #tab_c::-webkit-scrollbar-thumb, .people_wenjian::-webkit-scrollbar-thumb {
        width: 0px;
        height: 20px;
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        background-color: #bbb;
    }

    body::-webkit-scrollbar, .people_wenjian::-webkit-scrollbar {
        width: 0px;
        height: 16px;
        background-color: #f5f5f5;
    }

    /*定义滚动条的轨道，内阴影及圆角*/
    body::-webkit-scrollbar-track, .people_wenjian::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        border-radius: 10px;
        background-color: #f5f5f5;
    }

    /*定义滑块，内阴影及圆角*/
    body::-webkit-scrollbar-thumb, .people_wenjian::-webkit-scrollbar-thumb {
        width: 0px;
        height: 20px;
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        background-color: #555;
    }

    #oneUploadFile {
        min-height: 199px;
    }

    .cesdiv {
        height: 35px;
        width: 100%;
        display: inline-block;
        word-wrap: break-word;
        overflow: hidden;
        font-size: 13px;
        margin-top: 5px;
        line-height: 18px;
        -webkit-touch-callout: initial;
        -webkit-user-select: auto;
        -khtml-user-select: auto;
        -moz-user-select: auto;
        -ms-user-select: auto;
        user-select: auto;
    }

    .layui-row ul li {
        cursor: pointer;
        padding: 3px 5px;
    }

    #uploadinputimg {
        top: 0;
        position: absolute;
        width: 100%;
        height: 32px;
        display: inline-block;
        opacity: 0;
        z-index: 9999;
        filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
        color: #fff;
        margin: auto;
        margin-left: 15px;
        line-height: 30px;
        outline: none;
    }

    .edit, .del, .save {
        padding-left: 5px;
        cursor: pointer;
    }

    .uploadImg {
        cursor: pointer;
        position: absolute;
        width: 72px !important;
        height: 32px;
        left: 50%;
        margin-left: -36px;
        bottom: 0px;
        font-size: 12px;
        overflow: hidden;
    }

    .imgfileBox img {
        margin: 0 10px !important;
    }

    .imgfileBox:after {
        height: 32px;
    }

    #TOP_FLAG_SHOW2_menu a:hover {
        background: #83C1DE;
        color: #FFF;
    }

    .refresh, .autocodebtn {
        border: none;
        background: none;
        padding-left: 10px;
        font-size: 14px;
        color: #2567d6;
    }

    .edui-editor {
        z-index: 99999 !important;
    }

    body::-webkit-scrollbar {
        width: 0px;
        height: 10px;
        /* background-color: #F5F5F5; */
    }

    body::-webkit-scrollbar-thumb {
        border-radius: 50px;
        /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); */
        background-color: #c0c0c0;
    }

    body::-webkit-scrollbar-track {
        /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); */
        border-radius: 50px;
        background-color: #ffffff;
    }

    input,
    input[type="text"],
    textarea,
    select {
        max-width: 100%;
    }

    /* for ie6¡¢7¡¢8  ²»Ö§³Ö:not()*/
    input[type="checkbox"],
    input[type="radio"],
    input[type="file"] {
        border: none;
        min-height: initial;
        line-height: initial;
        max-width: none;
    }

    .abs_left {
        width: 100%;
    }

    .abs_left .num {
        width: 450px;
        overflow: hidden;
        white-space: pre;
        text-overflow: ellipsis;
        position: relative;
    }

    .abs_left .num .runname {
        position: absolute;
        top: 10px;
    }

    .hoverbox {
        position: absolute;
        background: #fff;
        right: -45px;
        width: 60px;
        z-index: 1001;
        top: 0;
        height: auto;
        padding: 2px 0;
        margin: 2px 0 0;
        list-style: none;
        background-color: #ffffff;
        border: 1px solid #ccc;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-right-width: 2px;
        border-bottom-width: 2px;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        border-radius: 6px;
        -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        -webkit-background-clip: padding-box;
        -moz-background-clip: padding;
        background-clip: padding-box;
        display: none;
    }

    .hoverbox li {
        font-size: 9pt;
        cursor: pointer;
        color: #333333;
        padding: 0 5px;
    }

    .hoverbox li:hover {
        background-color: #0081c2;
        color: #fff;
    }

    .plotting {
        font-weight: normal;
        line-height: 20px;
        white-space: nowrap;
        font-size: 13px;
    }

    .he {
        position: absolute;
        top: -4px;
        right: -5px;
        background: #ff3816;
        color: #fff;
        border-radius: 100%;
        height: 20px;
        padding: 0 5px;
        opacity: 0.9;
        filter: Alpha(opacity=90);
        z-index: 100000;
        font: 12px/1.5 "\5FAE\8F6F\96C5\9ED1", arial;
    }

    /**************右侧会签区意见卡片样式调整*******************************/
    #signbox li {
        display: inline-block;
        margin-left: 5%;
        height: auto;
    }

    .huiqian_touxiang {
        height: auto;
    }

    .cesdiv {
        height: auto;
        min-height: 35px;
    }

    .h2s {
        margin-bottom: 15px;
    }

    tr td {
        font-size: 11pt;
    }

    input[type="radio"] {
        width: 17px;
        height: 17px;
    }

    .foot_rig {
        top: 0;
    }

    /**************右侧会签区意见卡片样式调整结束*******************************/
</style>
<style>
    /**********处理表单样式和表单设计器不同的问题***********/
    #client h1,
    #client h2,
    #client h3,
    #client h4,
    #client h5,
    #client h6 {
        margin: 10px 0;
        font-family: inherit;
        font-weight: bold;
        line-height: 20px;
        color: inherit;
        text-rendering: optimizelegibility;
    }

    #client h1 small,
    #client h2 small,
    #client h3 small,
    #client h4 small,
    #client h5 small,
    #client h6 small {
        font-weight: normal;
        line-height: 1;
        color: #999999;
    }

    #client h1,
    #client h2,
    #client h3 {
        line-height: 40px;
    }

    #client h1 {
        font-size: 38px;
    }

    #client h2 {
        font-size: 31px;
    }

    #client h3 {
        font-size: 24px;
    }

    #client h4 {
        font-size: 17px;
    }

    #client h5 {
        font-size: 14px;
    }

    #client h6 {
        font-size: 12px;
    }

    #client h1 small {
        font-size: 24px;
    }

    #client h2 small {
        font-size: 17px;
    }

    #client h3 small {
        font-size: 13px;
    }

    #client h4 small {
        font-size: 13px;
    }

    #client i, #client u, #client b, #client em, #client span, #client small {
        font-weight: inherit;
        font-style: inherit;
    }
</style>
<style>
    /*王润于11.1编辑*/
    .cardWrap {
        width: 100%;
        height: auto;
    }

    .card {
        width: 277px;
        height: 233px;
        border: 1px solid #cccccc;
        border-top: 4px solid #0081ef;
        border-radius: 3px;
        background: #fcfdff;
        margin-left: 10px;
        /*margin-right: 80px;*/
        margin-top: 14px;
        float: left;
        position: relative;
    }

    .cardHead {
        width: 100%;
        height: 33px;
        border-bottom: 1px solid #b0d2fc;
        color: #0081ef;
        font-size: 16px;
        line-height: 33px;
    }

    .headImg {
        width: 100%;
        height: 95px;
    }

    .portrait {
        width: 74px;
        height: 74px;
        float: left;
        margin-top: 10px;
        margin-left: 16px;
    }

    .portrait img {
        width: 74px;
        height: 74px;
    }

    .nameDetail {
        height: 74px;
        float: left;
        color: #333333;
        margin-top: 10px;
        margin-left: 15px;
    }

    .nameDetail .name1 {
        font-size: 18px;
        margin-top: 5px;
        font-weight: bold;
    }

    .nameDetail .nameStatus {
        font-size: 16px;
    }

    .details {
        margin-left: 20px;
        line-height: 25px;
        font-size: 14px;
    }

    .deWd {
        display: inline-block;
        width: 107px;
    }

    .deWds {
        display: inline-block;
        width: 150px;
    }

    .detailFlow {
        display: inline-block;
        margin-left: 8px;
        width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
        white-space: nowrap;
    }

    /*王润 卡片部分 css部分 结束*/
</style>
<style id="table">.selectTdClass {
    background-color: #edf5fa !important
}

table.noBorderTable td, table.noBorderTable th, table.noBorderTable caption {
    border: 1px dashed #ddd
}

table {
    margin-bottom: 10px;
    border-collapse: collapse;
    display: table;
}

td, th {
    padding: 0px;
    border-color: #DDD;
}

caption {
    border: 1px dashed #DDD;
    border-bottom: 0;
    padding: 3px;
    text-align: center;
}

th {
    border-top: 1px solid #BBB;
    background-color: #F7F7F7;
}

table tr.firstRow th {
    border-top-width: 2px;
}

.ue-table-interlace-color-single {
    background-color: #fcfcfc;
}

.ue-table-interlace-color-double {
    background-color: #f7faff;
}

td p {
    margin: 0;
    padding: 0;
}
</style>

<body style="min-width: 1024px;">
<input type="hidden" value="${sessionScope.module }" id="module">
<div id="tab_c">
    <div class="tab_one">
        <iframe id='iframebar' src="about:blank" frameBorder=0 marginHeight=0 marginWidth=0
                style="position:absolute; visibility:inherit; top:0px;left:0px;height:100%;width:100%; z-Index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
        <div class="one_all" id="fu">
            <ul class="cont_cone" style="position: relative">
                <li style="height:33px;line-height: 33px;position:relative;border:none;background: #f8f8f8;margin-top: 0;">
                    <img class="fujian_logo" src="../../img/workflow/work/add_work/black1.png">
                    <h1 class="fujian_h1" style="font-weight: bold;  font-size: 11pt;margin-top: 6px;"><fmt:message
                            code="email.th.file"/></h1></li>
                <li id="img_none"
                    style="background: #f8f8f8;width:100%;height:199px;text-align: center;line-height:32px;margin: 0px;border: none;">
                    <img src="/img/workflow/work/add_work/img_nomessage_03.png" alt="" style="margin-top: 16px;">
                    <span style="display: block;color: #666;"><fmt:message code="main.th.Enclosure"/></span>
                </li>
                <div class="position backbtn"><img src="../../img/workflow/work/add_work/back.png"></div>
                <div id="oneUploadFile"></div>
            </ul>
            <div class="addFujianBox" style="position: relative;height: 15%;margin-bottom: 24px;margin-top: 24px;">
                <span style="display: inline-block;cursor: pointer;" class="add_fujian" id="add_fujian"><fmt:message
                        code="email.th.addfile"/></span>
                <form id="uploadimgform" target="uploadiframe" action="workUpload?module=workflow"
                      enctype="multipart/form-data" method="post">
                    <input type="file" name="file" id="uploadinputimg" multiple class="w-icon5">
                    <input type="hidden" id="uprunId" name="runId">
                </form>
            </div>
        </div>
        <div class="two_all" id="hui">
            <ul class="cont_ctwo" style="position: relative">
                <li style="margin-top: 0;height:33px;border: none;background: #f8f8f8"><img class="huiqian_logo"
                                                                                            src="../../img/workflow/work/add_work/huiqian1.png"
                                                                                            style="height: 18px;width: 18px;margin-top: 13px;">
                    <h1 class="huiqian_h1"><fmt:message code="workflow.th.JointlySign"/></h1></li>
                <div class="position backbtn"><img src="../../img/workflow/work/add_work/back.png"></div>
                <li style="border: none;position: relative;margin-top: 12px;background: #f8f8f8;"><textarea
                        id="signText" class="huiqian_inp hui_inp"
                        style="position: absolute;height:70px;left: 56px;width: 187px!important;"></textarea>
                    <button class="huiqian_send" id="signSendBtn"><fmt:message code="diary.th.remand"/></button>
                </li>
                <div id="signbox">
                    <li style="background: #f8f8f8;width:100%;height:199px;text-align: center;line-height:32px;margin: 0px;border: none;">
                        <img src="/img/workflow/work/add_work/img_nomessage_03.png" alt="" style="margin-top: 16px;">
                        <span style="display: block;color: #666;"> <fmt:message code="main.th.Opinion"/></span>
                    </li>
                </div>
            </ul>
        </div>

    </div>
    <div id="tab_ctwo">
        <ul class="cont_cthr" style="overflow: hidden;">
            <iframe frameborder="0" width="100%" height="100%" marginheight="0" marginwidth="0" scrolling="no"
                    src=""></iframe>
        </ul>
        <ul class="cont_cfour" style="display: block;position: relative;">
            <li style="height:33px;line-height: 33px;position:relative;border:none;background: #f8f8f8;margin-top: 0;width:  90%;margin: 0 auto;">
                <img class="fujian_logo" src="../../img/workflow/work/add_work/guanlian.png">
                <h1 class="fujian_h1" style="font-weight: bold;  font-size: 11pt;margin-top: 6px;"><fmt:message
                        code="document.th.Relation"/></h1></li>
            <div class="position backbtn"><img src="../../img/workflow/work/add_work/back.png"></div>

            <div class="xiaxiang">

                <%--王润于11.1增加卡片部分--%>
                <div>
                    <li style="height:33px;line-height: 33px;position:relative;border:none;background: #50b7ff;margin-top: 0;width:  100%;margin: 0 auto;text-align: center;margin-top: 9px;">
                        <img class="fujian_logo" style="margin-top: 8px;margin-left: 5%"
                             src="../../img/workflow/work/workform/关联.png">
                        <h1 class="fujian_h1" style="font-weight: bold;  font-size: 11pt;margin-top: 1px;color:#fff">
                            关联卡片</h1></li>
                    <%--<div class="position backbtn" ><img style="margin-top: -15px" src="../../img/workflow/work/workform/sanjiaozhankai.png"></div>--%>
                </div>
                <div class="cardWrap">

                </div>
                <li class="noData"
                    style="background: #f8f8f8;width:100%;height:199px;text-align: center;line-height:32px;margin: 0px;margin-top: 46px;border: none;">
                    <img src="/img/workflow/work/add_work/img_nomessage_03.png" alt="" style="margin-top: 16px;">
                    <span style="display: block;color: #666;">暂无关联卡片</span>
                </li>
                <%--王润 卡片部分 结束    --%>
                <div style="margin-top: 14px">
                    <li style="height:33px;line-height: 33px;position:relative;border:none;background: #50b7ff;margin-top: 0;width:  100%;margin: 0 auto;text-align: center">
                        <img class="fujian_logo" style="margin-top: 8px;margin-left: 5%"
                             src="../../img/workflow/work/workform/关联.png">
                        <h1 class="fujian_h1" style="font-weight: bold;  font-size: 11pt;margin-top: 1px;color:#fff">
                            关联流程</h1></li>
                    <div class="position backbtn"><img style="margin-top: -15px"
                                                       src="../../img/workflow/work/workform/sanjiaozhankai.png"></div>
                </div>
                <li class="noData1"
                    style="background: #f8f8f8;width:100%;height:199px;text-align: center;line-height:32px;margin: 0px;margin-top: 46px;border: none;">
                    <img src="/img/workflow/work/add_work/img_nomessage_03.png" alt="" style="margin-top: 16px;">
                    <span style="display: block;color: #666;">暂无关联流程</span>
                </li>
                <div id="xiangqing">
                    <div id="uxiangqing">

                    </div>
                    <div id="liebiao"></div>

                </div>
            </div>
        </ul>
    </div>
</div>
<div class="body" style="display: none;z-index:0;">
    <div class="head" style="position: fixed;z-index: 100000;top: 0px;">
        <div id="title" class="abs_left">
            <h1 class="num"></h1>
            <h2 class="step hideen"></h2>
            <select class="opt hideen" id="level" style="float: left">
                <option value="0"><fmt:message code="sup.th.ordinary"/></option>
                <option value="1"><fmt:message code="sup.th.urgent"/></option>
            </select>
            <div class="tabAB">
                <ul class="clearfix">
                    <li class="fl" data-id="1"><fmt:message code="workflow.th.form"/></li>
                    <li class="fl active" style="margin-left: 1px" data-id="2"><fmt:message code="main.th.text"/></li>
                </ul>
            </div>
        </div>

        <div id="tab_t" class="abs_right">
            <ul>
                <li class="fujian"><a href="javascript:void(0)"><fmt:message code="email.th.file"/></a></li>
                <li class="huiqian"><a href="javascript:void(0)"><fmt:message code="document.th.JointlySign"/></a></li>
                <li class="liucheng"><fmt:message code="doc.th.TechnologicalProcess"/></li>
                <li class="guanlian" style="border-right: none"><fmt:message code="document.th.Relation"/></li>
            </ul>
        </div>
    </div>
    <div style="height: 46px;"></div>
    <div class="content" style="height: 100%;position: relative;z-index:100;">
        <div class="cont" id="client">
            <div class="cont_form" id="a2" style="float: none;display: none;height: auto;">
            </div>
            <div class="officialDocument clearfix" id="officialDocument" style="position:relative;z-index:9999998;">
                <iframe id="zw" name="zw" src="" frameborder="0" scrolling="yes" height="100%"
                        width="100%" noresize="noresize" tid="2"></iframe>
            </div>
            <div style="width: 100%;height: 52px;"></div>
        </div>
        <div class="foot">
            <div class="foot_left" style="position: relative;z-index: 9999;">
                <ul>
                    <li class="left_li" id="flowImg" style="width: 89px;"><img class="left_img" style="margin-top: 7px;"
                                                                               src="../../img/workflow/work/add_work/sheji.png">
                        <h1 class="left_h1" style="font-weight: 300;"><fmt:message code="workflow.th.chart"/></h1></li>
                    <%--  <li class="left_li"><img class="left_img" src="../../img/workflow/work/add_work/weituo.png"><h1 class="left_h1">委托</h1></li>--%>
                    <li class="left_li" id="print" style="width: 60px;"><img class="left_img"
                                                                             src="../../img/workflow/work/add_work/print.png">
                        <h1 class="left_h1" style="font-weight: 300;"><fmt:message code="global.lang.print"/></h1></li>
                    <li class="left_li" id="attach_name" style="margin-left: 16px;"><img class="left_img"
                                                                                         src="../../img/workflow/work/add_work/lan.png">
                        <h1 class="left_h1" style="font-weight: 300;"><fmt:message code="email.th.file"/></h1></li>
                </ul>
            </div>
            <div class="foot_rig" id="foot_rig" style="z-index: 8888;">
                <ul>
                    <li class="rig_li more baocunfanhui" id="more" style="position: relative">
                        <ul class="floatRight" style="position: absolute;display: none;background-color: #fff;">
                            <%--<li id="fenxiang" style="width: 100%!important;"><h1 class="rig_h1 rig_h1one" ><fmt:message code="adding.th.sort" /></h1></li>--%>
                            <li id="guidang" style="width: 100%!important;"><h1 class="rig_h1 rig_h1one"><fmt:message
                                    code="workflow.th.File"/></h1></li>
                            <li id="daochu" style="width: 100%!important;"><h1 class="rig_h1 rig_h1one"><fmt:message
                                    code="global.lang.report"/></h1></li>
                        </ul>

                        <h1 class="rig_h1 rig_h1one"><fmt:message code="adding.th.more"/></h1></li>
                    <li class="rig_li saveformlo" id="cancleBtn"><h1 class="rig_h1"><fmt:message
                            code="notice.th.return"/></h1></li>
                    <li class="rig_li baocunfanhui" id="saveformback"><h1 class="rig_h1"><fmt:message
                            code="main.th.SaveReturn"/></h1></li>
                    <li class="rig_li saveformlo" id="saveform"><h1 class="rig_h1" style="width: 90px;"><fmt:message
                            code="global.lang.save"/></h1></li>
                    <li class="rig_li hideen saveformlo" id="goback"><h1 class="rig_h1 "><fmt:message
                            code="document.th.Fallback"/></h1></li>
                    <li class="rig_li hideen" id="addSign"><h1 class="rig_h1 ">增加会签人</h1></li>
                    <li class="rig_li zhuanjiao rig_h1onexiayibu">
                        <h1 class="rig_h1"style="width: 82px;margin-left: 20px;">
                            <fmt:message code="document.th.nextStep"/>
                        </h1>
                    </li>
                </ul>
            </div>

            <div class="foot_rig" id="foot_rig1" style="display: none;z-index: 8888;">
                <ul>
                    <li class="rig_li saveformlo" id="cancleBtn1"><h1 class="rig_h1"><fmt:message
                            code="depatement.th.quxiao"/></h1></li>
                    <li class="rig_li baocunfanhui" id="saveformback1"><h1 class="rig_h1"><fmt:message
                            code="main.th.SaveReturn"/></h1></li>
                    <li class="rig_li saveformlo" id="saveform1" style="width: 74px!important;"><h1 class="rig_h1"
                                                                                                    style="width: 90px;">
                        <fmt:message code="global.lang.save"/></h1></li>
                    <li class="rig_li rig_h1onexiayibu" id="finish" style="height: 30px"><h1 class="rig_h1"
                                                                                             style="width: 82px;margin-left: 20px;">
                        <fmt:message code="workflow.th.FinishedProcessing"/></h1></li>
                </ul>
            </div>

        </div>
    </div>
    <div id="printdiv">
    </div>

</div>
<div id="readcommentstpl" class="layui-fluid layui-form " style="display:none;">
    <div class="layui-row layui-rows">
        <div class="layui-col-md12">
            <fieldset class="layui-elem-field layui-field-title" style="margin: 0;">
                <legend style="display: inline-block;width: 5em;border: 0;margin-bottom: 0;"> [送]方式</legend>
            </fieldset>

            <ul class="fl clearfix" style="padding-left: 35px;box-sizing: border-box;">
                <li class="layui-badge" style="margin: 5px">请</li>
                <li class="layui-badge" style="margin: 5px">送</li>
                <li class="layui-badge" style="margin: 5px">拟请</li>
                <li class="layui-badge" style="margin: 5px">转</li>
                <li class="layui-badge" style="margin: 5px">有请</li>
                <li class="layui-badge" style="margin: 5px">请各位领导</li>
            </ul>
        </div>
    </div>
    <div class="layui-row layui-rows" style="padding-top: 22px;">
        <fieldset class="layui-elem-field layui-field-title" style="margin: 0;">
            <legend style="display: inline-block;width: 9em;border: 0;margin-bottom: 0;">请选择部门和人员</legend>
        </fieldset>

        <div class="layui-col-md12">

            <select name="" class="select1" id="select11"
                    style="vertical-align: middle;width: 29%;    margin-left: 35px; margin-right: 10%;" num="1">
                <option value="">请选择部门</option>

            </select>
            <select name="" id="select2" style="vertical-align: middle;width: 29%;" num="2">
                <option value="">请选择人员</option>

            </select>
        </div>

    </div>
    <div class="layui-row layui-rows">
        <div class="layui-col-md12">
            <fieldset class="layui-elem-field layui-field-title" style="margin:0">
                <legend style="display: inline-block;width: 5em;border: 0;margin-bottom: 0;">处理方式</legend>
            </fieldset>

            <ul class="fl clearfix" style="padding-left: 35px;box-sizing: border-box;">
                <li class="layui-badge" style="margin: 5px">办理</li>
                <li class="layui-badge" style="margin: 5px">已阅</li>
                <li class="layui-badge" style="margin: 5px">阅示</li>
                <li class="layui-badge" style="margin: 5px">阅</li>
                <li class="layui-badge" style="margin: 5px">提出意见</li>
                <li class="layui-badge" style="margin: 5px">批示</li>
                <li class="layui-badge" style="margin: 5px">协办</li>
                <li class="layui-badge" style="margin: 5px">研酌</li>
                <li class="layui-badge" style="margin: 5px">同意</li>
                <li class="layui-badge" style="margin: 5px">不同意</li>
                <li class="layui-badge" style="margin: 5px">研阅</li>
                <li class="layui-badge" style="margin: 5px">复印</li>
            </ul>
        </div>


    </div>
    <div class="centertion" style="width:100%;margin-left: 35px;margin-top: 10px; box-sizing: border-box">
        <textarea name="" id="" cols="30" rows="5" style="width: 84%;"></textarea>
    </div>
</div>
<div class="option"></div>
</body>
<script type="text/javascript" src="/js/spirit/qwebchannel.js"></script>
<script>
    function checkStr(str) {
        if (str == '' || typeof(str) == 'undefined') {
            return '无'
        } else {
            return str
        }
    };

    function getCard() {
        var uurrll = window.location.href;
        var str1 = uurrll.split('?')[1];
        var arr1 = str1.split('&');
        var objectA = {};
        for (var x = 0; x < arr1.length; x++) {
            if (arr1[x].split('=')[0] == 'flowId') {
                objectA['flowId'] = arr1[x].split('=')[1];
            } else if (arr1[x].split('=')[0] == 'runId') {
                objectA['runId'] = arr1[x].split('=')[1];
            }
        }
        objectA.printModel = workForm.option.attributesTitle;
        objectA.attributesStr = workForm.option.attributesStr
        return objectA;
    };

    function hr() {
        window.open('/hr/page/hrOnJop')
    }

    function person() {
        window.open('/controlpanel/personInfor?type=0')
    }

    function isExitsFunction(funcName) {//判断是否是一个方法
        try {
            if (typeof(eval(funcName)) == "function") {
                return true;
            }
        } catch (e) {
        }
        return false;
    };

    function autodivheight() {
        var winHeight = 0;
        if (window.innerHeight)
            winHeight = window.innerHeight;
        else if ((document.body) && (document.body.clientHeight))
            winHeight = document.body.clientHeight;
        if (document.documentElement && document.documentElement.clientHeight)
            winHeight = document.documentElement.clientHeight;
        winWidth = document.documentElement.clientWidth;
        document.getElementById("client").style.height = winHeight - 98 + "px";
        //document.getElementById("officialDocument").style.height= winHeight - 98 +"px";
    };

    function openFiledaochu(text) {
        $.post('/rmsFile/createFormHtml', {
            htmlContent: text,
            typeFlag: 2
        }, function (json) {
            if (json.flag) {
                window.open('/download?' + encodeURI(json.object.attUrl));
            }
        }, 'json')
    };

    setTimeout(function () {
        $.ajax({
            url: '/flowModelAssociationSet/getFlowRunInfo',
            data: getCard(),
            dataType: 'json',
            type: 'post',
            success: function (res) {
                var json = res.object;
                if (json) {
                    if (json.length <= 0) {
                        $('.noData').css('display', 'block');
                    } else {
                        $('.noData').hide();
                        if (json[0]['hrStaffInfo'] != undefined) {
                            var hrStaffInfos = json[0]['hrStaffInfo'][0];//人事档案卡片
                        }
                        if (json[0]['users'] != undefined) {
                            var hrStaffContract = json[0]['users'];//合同档案卡片
                        }
                        if (json[0]['eduFixAssets'] != undefined) {
                            var eduFixAssets = json[0]['eduFixAssets'];//固定资产卡片
                        }


                        if (hrStaffInfos) {
                            var str = '<div class="card" id="hr" onclick="hr()" style="height:236px">' +
                                '<div class="cardHead">' +
                                '<img src="/img/workflow/flowsetting/settingApplication/archivesCard.png" style="margin-left: 15px;margin-top: -3px;"/>' +
                                '<span class="cardName">人事档案卡片</span>' +
                                '</div>' +
                                '<div class="headImg">' +
                                '<div class="portrait">' +
                                '<img class="userPhotoImg" src="/img/workflow/flowsetting/settingApplication/menImg.png"/>' +
                                '</div>' +
                                '<div class="nameDetail">' +
                                '<p class="name1">' + checkStr(hrStaffInfos.staffName) + '</p>' +
                                '<p class="nameStatus">' + checkStr(hrStaffInfos.deptName) + '</p>' +
                                '<p class="nameStatus">' + checkStr(hrStaffInfos.userPriv) + '</p>' +
                                '</div>' +
                                '</div>' +
                                '<div class="details">' +
                                '<p><span class="deWd">性别：' + function () {
                                    if (hrStaffInfos.staffSex == "0") {
                                        return "男"
                                    } else {
                                        return "女"
                                    }
                                }() + '</span><span class="deWds">年龄：' + checkStr(hrStaffInfos.staffAge) + '</span></p>' +
                                '<p><span class="deWd">学历：' + checkStr(hrStaffInfos.staffHighestSchool) + '</span><span class="deWds">职称：' + checkStr(hrStaffInfos.persenPosition) + '</span></p>' +
                                '<p><span class="deWd">岗位：' + checkStr(hrStaffInfos.workJob) + '</span><span class="deWds">入职时间：' + checkStr(hrStaffInfos.datesEmployed) + '</span></p>' +
                                '<p>户籍：' + checkStr(hrStaffInfos.staffDomicilePlace) + '</p>' +
                                '</div>' +
                                '</div>';

                            $('.cardWrap').append(str);
                            if (hrStaffInfos.photoName) {
                                $('.userPhotoImg').attr('src', hrStaffInfos.photoName)
                            } else if (hrStaffInfos.photoName == '') {
                                if (hrStaffInfos.staffSex == 0) {
                                    $('.userPhotoImg').attr('src', "/img/workflow/flowsetting/settingApplication/menImg.png")
                                } else if (hrStaffInfos.staffSex == 1) {
                                    $('.userPhotoImg').attr('src', "/img/workflow/flowsetting/settingApplication/womenImg.png")
                                }
                            }
                        }
                        ;


                        if (hrStaffContract) {
                            var str1 = '<div class="card" onclick="person()">' +
                                '<div class="cardHead">' +
                                '<img src="/img/workflow/flowsetting/settingApplication/archivesCard.png" style="margin-left: 15px;margin-top: -3px;"/>' +
                                '<span class="cardName">个人资料卡片</span>' +
                                '</div>' +
                                '<div class="headImg">' +
                                '<div class="portrait">' +
                                '<img class="userPhotoImg" src="' + function () {
                                    if (hrStaffContract[0].avatar128 != "" && hrStaffContract[0].avatar128 != undefined) {
                                        return '/img/user/' + hrStaffContract[0].avatar128;
                                    } else {
                                        if (hrStaffContract[0].sex == 0) {
                                            return '/img/user/boy.png';
                                        }
                                        else if (hrStaffContract[0].sex == 1) {
                                            return '/img/user/girl.png';
                                        } else {
                                            return '/img/user/boy.png'
                                        }
                                    }

                                }() + '"/>' +
                                '</div>' +
                                '<div class="nameDetail">' +
                                '<p class="name1">' + checkStr(hrStaffContract[0].userName) + '</p>' +
                                '<p class="nameStatus">' + checkStr(hrStaffContract[0].dep.deptName) + '</p>' +
                                '<p class="nameStatus">' + checkStr(hrStaffContract[0].userPrivName) + '</p>' +
                                '</div>' +
                                '</div>' +
                                '<div class="details" style="line-height: 24px;">' +
                                '<p>工作电话：' + checkStr(hrStaffContract[0].telNoDept) + '</p>' +
                                '<p>手机：' + checkStr(hrStaffContract[0].mobilNo) + '</p>' +
                                '<p>邮箱：' + checkStr(hrStaffContract[0].msn) + '</p>' +
                                '<p>QQ：' + checkStr(hrStaffContract[0].oicqNo) + '</p>' +

                                '</div>' +
                                '</div>';

                            $('.cardWrap').append(str1);
                        }
                        ;
                        if (eduFixAssets) {
                            var str2 = ""
                            if (eduFixAssets.length > 0) {
                                for (var i = 0; i < eduFixAssets.length; i++) {
                                    str2 += '<div class="card" style="height:245px">' +
                                        '<div class="cardHead">' +
                                        '<img src="/img/commonTheme/theme6/fixAssetsManage.png" style="margin-left: 15px;margin-top: -3px;width:18px"/>' +
                                        '<span class="cardName">固定资产卡片</span>' +
                                        '</div>' +
                                        '<div class="details" style="margin-top:5px;margin-left:20px;line-height:25px;padding-bottom:5px">' +
                                        '<p>固定资产编号：GDZC2019010100008</p>\n' +
                                        '                                    <p>资产名称：<span>' + checkStr(eduFixAssets[i].assetsName) + '</span></p>' +
                                        '                                    <p>购买时间：<span>' + checkStr(eduFixAssets[i].buyTime) + '</span></p>' +
                                        '                                    <p>品牌型号：<span>' + checkStr(eduFixAssets[i].info) + '</span></p>' +
                                        '                                    <p>类别：<span>' + checkStr(eduFixAssets[i].typeName) + '</span></p>' +
                                        '                                    <p>使用年限：<span>' + checkStr(eduFixAssets[i].useYy) + '月</span></p>' +
                                        '                                    <p>保管人：<span>' + checkStr(eduFixAssets[i].keeperName) + '</span></p>' +
                                        '                                    <p>物品状态：<span>' + function () {
                                            if (eduFixAssets[i].status == '1') {
                                                return '未使用'
                                            } else if (eduFixAssets[i].status == '2') {
                                                return '使用'
                                            } else if (eduFixAssets[i].status == '3') {
                                                return '损坏'
                                            } else if (eduFixAssets[i].status == '4') {
                                                return '丢失'
                                            } else if (eduFixAssets[i].status == '5') {
                                                return '报废'
                                            } else {
                                                return '无'
                                            }
                                        }() + '</span></p>' +
                                        '</div>' +
                                        '</div>';
                                }
                            }

                            $('.cardWrap').append(str2);
                            var innerTable = '';
                            for (var x = 0; x < eduFixAssets.length; x++) {
                                innerTable +=
                                    '<tr style="text-align:center">' +
                                    '<td>' + checkStr(eduFixAssets[x]['id']) + '</td>' +
                                    '<td>' + checkStr(eduFixAssets[x]['assetsName']) + '</td>' +
                                    '<td><div class="showQRCode" style="height:30px;width:30px;border:1px solid black;cursor:pointer"></div>' +
                                    '</td>' +
                                    '</tr>';
                            }
                            ;
                            $('.eduTbody').html(innerTable);
                            for (var x = 0; x < $('.showQRCode').length; x++) {
                                var createrTime = eduFixAssets[x]['createrTime'];
                                var id = eduFixAssets[x]['id'];
                                var companyId = eduFixAssets[x]['companyId'];
                                var obj = {
                                    "mark": "fixAssets",
                                    "id": id,
                                    "createrTime": createrTime,
                                    "companyId": companyId
                                };
                                var text = JSON.stringify(obj);
                                var qrcode = new QRCode(document.getElementsByClassName("showQRCode")[x], {
                                    width: 30,//设置宽高
                                    height: 30,
                                    text: text
                                });
                                $('.showQRCode img').attr('alt', '点击放大')
                            }
                            $('.bigImg').hide();
                            $('.closeBigImg').hide();
                            $('.showQRCode').click(function () {
                                $('.bigImg').html('');

                                var obj = $(this).attr('title');
                                var text = JSON.stringify(obj);
                                var qrcode = new QRCode(document.getElementsByClassName("bigImg")[0], {
                                    width: 200,//设置宽高
                                    height: 200,
                                    text: text
                                });
                                $('.bigImg img').css({marginLeft: 39});
                                $('.bigImg img').attr('alt', '点击返回');
                                $('.bigImg').css({zIndex: 5}).show();
                                $('.closeBigImg').show();
                            })
                            $(".closeBigImg").click(function () {
                                $(this).hide();
                                $('.bigImg').css({zIndex: -5}).hide()
                            })
                        }


                    }
                }

            }
        })
    }, 1000);
    //控制高度
    layer.load();
    $('.body').show();
</script>
<script>
    parent.opener = window.opener;
    var globalData = {};
    var flowrunId = null;
    var eventas = null;
    var runId = $.GetRequest().runId;
    var SignLoadFlag = false;
    var sign_arr = [];
    var paraValue = 0;
    var deptNo = "";
    var fadata;
    var faadata;
    var fapdata;
    var fatdata;
    var syncDeal = '';
    var prcsName = '';
    var nextFlowid = ''
    var workflowpricToArray = '';
    isIE = function () {
        return !!(window.ActiveXObject || "ActiveXObject" in window);
    }
    window.onresize = function () {
        var tableName = $.getQueryString("tableName") || '';
        if (tableName != '') {
            // location.reload();
        } else {
            $('#tab_c').css('height', $('body').height() - 52);
        }
    };


    $('.cont_cfour').on('click', '.detailFlow', function (e) {
        e.stopPropagation()
        var runId = $(this).attr('runId');
        var flowId = $(this).attr('flowId');
        var prcsId = $(this).attr('prcsId')
        var flowStep = $(this).attr('flowStep');
        window.open('/workflow/work/workformPreView?flowId=' + flowId + '&prcsId=' + prcsId + '&flowStep=' + flowStep + '&runId=' + runId, '_blank')
    });

    function openFile(a) {
        $.post('/rmsFile/createFormHtml', {htmlContent: a, typeFlag: 1}, function (json) {
            if (json.flag) {
                $('#ifDiv').remove();
                window.open('/rmsFile/toAdd?aid=' + json.object.aid + '&runId=' + runId);
            }
        }, 'json')
    };

    function guanlian() {
        var flowId = $.getQueryString("flowId");
        if (flowId != undefined) {
            $(".cont_cfour").hide();
            $.ajax({
                url: '/flowModelAssociationSet/queryFlowAssociation',
                type: 'get',
                data: {
                    flowId: flowId,
                    type: 1
                },
                dataType: 'json',
                success: function (data) {
                    var x = data.obj;
                    if (x.length != 0) {
                        $('.noData1').hide();
                        // $('.noData').hide();
                        $(".xiaxiang").show();
                        for (var i = 0; i < x.length; i++) {
                            var cur = x[i];
                            $.each(cur, function (key, value) {
                                var str = '';
                                str += '<ul class="xiangqing" id="sange" style="width: 279px;display: block;margin: 0 auto; margin-top: 14px; border: 1px solid #cccccc;border-top: 2px solid #0081ef;border-bottom: none">' + '<li style="height: 42px;line-height: 42px;border-bottom: 1px solid #b0d2fc">' + '<img src="../../img/workflow/work/workform/流程.png" style="display: inline-block;margin-left: 17px;text-align: center;vertical-align: middle" alt="">' + '<h3 id="baoxiu" style="display:inline-block;vertical-align: middle;text-align: center;margin-left: 5px;font-size: 16px;color:#0081ef">' + key + '</h3>' + '<span style="font-size: 14px;color:#2b7fe0;text-align: center;vertical-align: middle;cursor: pointer;margin-left:30px" id="association">' + "关联条件" + '</span>' + '<a href="javascript:;" style="font-size: 14px;color:#2b7fe0;text-align: center;vertical-align: middle;text-decoration: none;margin-left:18px;" id="morethings">' + "更多" + '</a>' + '</li>' + '</ul>';
                                $('#uxiangqing').append(str);
                                var str1 = '';
                                for (var k = 0; k < value.length; k++) {
                                    str1 += '<li id="liebiaoye" style="width: 90%;margin: 0 auto;height: 50px;border-bottom: 1px dashed #b0d2fc;padding-left: 8px;padding-top: 2px;font-size: 14px;cursor: pointer;">' + '<p style="margin-top: 4px">' + "流水号:" + value[k].flowRun.runId + '</p>' + '<h4 style="display: inline-block;">' + "工作名称/文号:" + '</h4>' + '<a href="javascript:;" style="color:#0081ef" class="detailFlow" title="' + key + '" runId="' + value[k].flowRun.runId + '" flowStep="' + value[k].flowPrcs + '" prcsId="' + value[k].prcsId + '" flowId="' + value[k].flowId + '"><span style="display: inline-block;margin-left: 8px">' + key + '</span></a>' + '<span  style="padding-top: 2px;font-size: 14px;display: inline-block;margin-left: 3px">' + value[k].prcsTime.slice(0, 10) + '</span>' + '</li>'
                                }
                                $('#uxiangqing').append(str1);
                            })
                        }
                    } else {
                        $(".cont_cfour").show();
                        $(".noData1").show();
                        // $('.noData').hide();
                    }
                },
                error: function (data) {
                    $(".cont_cfour").show();
                    $(".noData1").show();
                    // $('.noData').hide();
                }
            })
        } else {
            $(".cont_cfour").show();
            $(".noData1").show();
            // $('.noData').hide();
        }

    };

    //详情页
    function tiaozhuan() {
        // $("#liebiaoye").live('click',function () {
        //     window.location.href = "/workflow/work/workformPreView?flowId=323&flowStep=&runId=8331&prcsId="
        // })
    };

    //关联条件
    function association() {
        $("#association").live('click', function () {
            window.open("/flowModelAssociationSet/flowModelAssociationSetList?flowId=" + $.GetRequest().flowId)
            // window.location.href = "/flowModelAssociationSet/flowModelAssociationSetList?flowId="+flowId
        })
    };

    //关联更多
    function morethings() {
        var flowId = $.getQueryString("flowId");
        $("#morethings").live('click', function () {
            var flowId = $.getQueryString("flowId");
            window.open("/workflow/work/workLists?flowId=" + flowId)
        })
    };

    //初始化下拉控件
    function initSelect() {
        createSelectArr();
        //初始化下拉菜单
        firstSelectArr.forEach(function (n, i) {
            selectChange(n);
        });
    }

    //selectArr储存所有的下拉菜单
    var selectArr = new Array();
    //缓存顶级下拉菜单
    var firstSelectArr = new Array();
    var restoreFlag = false;

    function createSelectArr() {
        allSelect = $("select");
        //首次循环，将下拉菜单值保存为全局变量多维数组
        allSelect.each(function () {
            var field_name = $(this).attr("name");

            selectArr[field_name] = new Array();
            $(this).children().each(function (i, e) {
                selectArr[field_name][i] = e.value;
            });
        });
        //再次循环，所有的父菜单存到数组中，用于更新状态
        allSelect.each(function (i) {
            //赋重写事件
            $(this).change(function () {
                selectChange($(this).attr("name"));
            });
            //判断有子菜单的
            if ($(this).attr("child")) {
                var temp = $(this).attr("title");
                if (!$("select[child='" + temp + "']")[0]) {
                    firstSelectArr[i] = jQuery(this).attr("name");
                }
            }
        });
    }

    //处理关联菜单的子菜单选项,传入：关联菜单
    function selectChange(Select) {
        var SelectObj = $("select[name='" + Select + "']");
        var parent_str = "|" + $(SelectObj).val();
        if ($(SelectObj).attr("child") != undefined) {
            //子对象
            var childObj = $("select[title='" + $(SelectObj).attr("child") + "']");
            if (childObj.length == 0) {
                return false;
            }
            //记录原始数据，重写option后用此值恢复
            var childVal = $(childObj).val();
            //先删除所有option
            childObj.children().remove();
            //循环添加option
            selectArr[$(childObj).attr("name")].forEach(function (n, i) {
                if (restoreFlag) {
                    if (parent_str != '|' && n.indexOf(parent_str) != -1) {
                        var val_arr = n.split("|");
                        $(childObj).append("<option value='" + n + "'>" + val_arr[0] + "</option>");
                    }
                } else {
                    var val_arr = n.split("|");
                    $(childObj).append("<option value='" + n + "'>" + val_arr[0] + "</option>");
                }
            });
            childObj.val(childVal);
            selectChange($(childObj).attr("name"));
        }
        else {
            return;
        }
    }

    $(function () {
        guanlian();
        morethings();
        association();
        tiaozhuan();

        var flowId = $.getQueryString("flowId");
        var flowStep = $.getQueryString("flowStep") || '';
        var prcsId = $.getQueryString("prcsId") || '';
        var runId = $.getQueryString("runId") || '';
        var type = $.getQueryString("type") || '';
        var tableName = $.getQueryString("tableName") || '';
        var tabId = $.getQueryString("tabId") || '';
        var isNomalType = $.getQueryString("isNomalType") || '';
        var opflag = $.getQueryString("opflag") || '';
        var type = $.getQueryString("type") || '';
        var guide = $.getQueryString("guide") || '';
        var navigatorName = "Microsoft Internet Explorer";
        var isIE = false;
        var flowId = $.GetRequest().flowId || '';
        var flowStep = $.GetRequest().flowStep || '';
        var runId = $.GetRequest().runId || '';
        var prcsId = $.GetRequest().prcsId || '';
        var userId = $.GetRequest().userId || '';
        var gobackIndex = 0;
        var iconImgType = {
            txt: '/img/workflow/work/txt.png',
            jpg: '../../img/icon_image.png',
            png: '../../img/icon_image.png',
            pdf: '/img/workflow/work/pdf.png',
            ppt: '/img/workflow/work/ppt.png',
            pptx: '/img/workflow/work/ppt.png',
            doc: '/img/workflow/work/doc.png',
            docx: '/img/workflow/work/doc.png',
            xls: '/img/workflow/work/xls.png',
            xlsx: '/img/workflow/work/xls.png',
            rar: '/img/workflow/work/rar.png',
            zip: '/img/workflow/work/zip.png',
            html: '/img/workflow/work/html.png',
            xmind: '/img/workflow/work/xmind.png'
        };

        if (navigator.appName == navigatorName) {
            isIE = true;
            $('#uploadinputimg').css({
                'opacity': '1',
                'filter': 'progid:DXImageTransform.Microsoft.Alpha(opacity=0)'
            })
            $('#add_fujian').hide();
        }
        ;

        if (false) {
        } else {
            if (opflag == 1) {
                $('title').html('流程办理');
            } else if (opflag == 0) {
                $('title').html('会签办理');
            } else {
                $('title').html('<fmt:message code="main.newwork" />');
            }
        }
        ;

        if (type) {
            if (type == 'new') {
                document.title = $('title').attr(type);
            } else {
                document.title = $('title').attr(type);
            }
        }
        ;

        $('.cont_cthr').find('iframe').prop('src', '/flowSetting/processDesignToolsT?type=2&flowId=' + flowId);
        $('#uploadimgform').attr('action', 'workUpload?module=workflow&flowPrcs=' + flowStep + '&runId=' + runId);

        $('#tab_c').css('right', -($('#tab_c').width() + 30));
        $('#tab_c').css('height', $('body').height() - 52);
        $('#tab_c').css('top', $('.head').height());

        if (isNomalType == 'false') {
            $('.tabAB').show();
            $('.tabAB ul li').click(function () {
                if ($(this).attr('data-id') == 2) {
                    if (tabId != '') {
                        autodivheight();
                        $('#zw').prop('src', '/common/webOffice?documentEditPriv=1&ntType=1&emailList=1&print=1&tabId=' + tabId + '&tableName=' + tableName);
                    }
                }
            });

            $('.tabAB ul li').click(function () {
                $(this).siblings().removeClass('active');
                $(this).addClass('active');
                if ($(this).attr('data-id') == 1) {
                    $('#a2').show();
                    $('#tab_t').show();
                    $('.officialDocument').hide();
                    $("#zw").contents().find("object").hide();
                } else {
                    $('#a2').hide();
                    $('#tab_t').hide();
                    $('.officialDocument').show()
                    $("#zw").contents().find("object").show();

                }
            });
        } else {
            $('.opt').show();
            $('.step').show()
        }
        ;

        //引入方法
        workForm.init({
            formhtmlurl: '../../workflow/work/workfastAdd',//URL
            resdata: {
                flowId: flowId,
                runId: runId,
                prcsId: prcsId,
                flowStep: flowStep,
                userId: userId,
                tableName: tableName,
                tabId: tabId
            },
            flowStep: prcsId,//预览
            target: '.cont_form'
        }, function (data, option) {
            workForm.inited = true;

            if (data.turn) {//为true的话，证明该步骤已转交，关闭当前界面
                layer.open({
                    content: '当前步骤已转交',
                    icon: 2,
                    yes: function (index) {
                        window.location.href = '/workflow/work/workformPreView?flowId=' + flowId + '&prcsId=' + prcsId + '&flowStep=' + flowStep + '&runId=' + runId;
                    },
                    cancel: function (index) {
                        window.close();
                    }
                })
                return;
            }
            //声明下签章、手写控件START
            if ($('input[data-type=djsign]').length != 0) {
                loadwebsign();

                function DWebSignSealFUN() {
                    SignLoadFlag = true;
                    for (var i = 0; i < $('input[data-type=djsign]').length; i++) {
                        sign_arr.push($('input[data-type=djsign]').eq(i).attr('name'));
                    }
                    DWebSignSeal = document.getElementById("DWebSignSeal");
                    LoadSignData(sign_arr);
                }

                DWebSignSealFUN()
            }
            //声明下下拉框控件START联动功能
            if ($('select[data-type=select]').length != 0) {
                restoreFlag = true;
                initSelect();
                $("option").each(function (index) {
                    var text_index = $(this).text().indexOf("|");
                    if (text_index > 0) {
                        $(this).text($(this).text().substring(0, text_index));
                    }
                });
            }
            //声明下签章、手写控END

            fromDataReject = buildFormData();

            var obj = data.object;
            fadata = data.object;
            runId = obj.flowRun.runId;
            flowrunId = obj.flowRun.runId;
            $('#uprunId').val(flowrunId)
            globalData.obj = obj;
            globalData.flowRun = obj.flowRun;
            globalData.isViewPriv = obj.isViewPriv;
            globalData.listFp = obj.listFp;
            globalData.listTurnPriv = obj.listTurnPriv;
            globalData.flowRunPrcs = obj.flowRunPrcs;
            globalData.option = option;
            globalData.listView = obj.listView;
            globalData.flowTypeModel = obj.flowTypeModel;
            globalData.conditionDesc = obj.conditionDesc;
            globalData.prcsIn = obj.prcsIn;
            globalData.flowProcesses = obj.flowProcesses;
            globalData.prcsInSet = obj.prcsInSet;
            globalData.prcsOut = obj.prcsOut;
            globalData.prcsType = obj.flowProcesses.prcsType;
            globalData.prcsOutSet = obj.prcsOutSet;
            globalData.gatherNodePriv = obj.gatherNodePriv;
            globalData.topDefault = obj.flowProcesses.topDefault;
            globalData.userName = obj.userName;
            globalData.autoEdit = obj.isWorkName;
            globalData.checkTurnPriv = obj.checkTurnPriv
            globalData.feedback = obj.feedback
            globalData.flowPrcs = obj.flowRunPrcs.flowPrcs
            globalData.flowFormType = obj.flowFormType
            //标识扩展字段
            globalData.prcsExtFlag = obj.flowProcesses.prcsExtFlag;
            var flowName = globalData.flowTypeModel.flowName;


            /**************判断 工作流设置了关联应用设置 开始******************************/

            var relationFunc = globalData.flowProcesses.relationFunc;
           if(relationFunc == undefined){
               relationFunc = {
                   funcUrl : '',
                   funcName : '实验实施',
               }
           }

            if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {

            } else if (/(Android)/i.test(navigator.userAgent)) {

            }else{
                if(globalData.prcsExtFlag=='LIMS_PAD_NODE'){
                    relationFunc.funcUrl = '/workapp/work/workApp403';
                    $('#foot_rig li').css('pointer-events','none');
                    $('#foot_rig li').css('opacity','0.6');
                }

            }
            $('#zw').prop('src', relationFunc.funcUrl);
            autodivheight();
            $('.tabAB').show().find('li').eq(1).html(relationFunc.funcName);
            $('.num').css('width', '25%');
            $('.tabAB ul li').click(function () {
                $(this).siblings().removeClass('active');
                $(this).addClass('active');
                if ($(this).attr('data-id') == 1) {
                    $('#a2').show();
                    $('#tab_t').show();
                    $('.officialDocument').hide();

                    $("#zw").hide();
                } else {
                    $('#a2').hide();
                    $('#tab_t').hide();
                    $('.officialDocument').show()
                    $("#zw").show();

                    $('#zw').prop('src',funcUrl);
                }
            });

            /**************判断 工作流设置了关联应用设置 结束******************************/

            /**************判断 更多操作按钮 开始******************************/
            var flowAction = globalData.flowTypeModel.flowAction;
            if (flowAction != '' && flowAction != undefined) {
                if (flowAction.indexOf('4') == -1 && flowAction.indexOf('5') == -1) {
                    $('#more').hide();
                }
                if (flowAction.indexOf('4') == -1) {
                    $('#guidang').hide();
                    $('.floatRight').css({
                        'top': '-40px'
                    })
                } else if (flowAction.indexOf('5') == -1) {
                    $('#daochu').hide();
                    $('.floatRight').css({
                        'top': '-40px'
                    })
                }
            } else {
                $('#more').hide();
            }
            /**************判断 更多操作按钮 结束*****************************/
            $('#level').val(obj.flowRun.workLevel);
            if (guide == 'guide') {
                if (opflag == 1) {
                    $('title').html('<fmt:message code="main.th.ProcessManagement" />');
                } else if (opflag == 0) {
                    $('title').html('<fmt:message code="work.th.huiqian" />');
                }
            } else {
                if (parent.opener && parent.opener.huiqian) {
                    if (parent.opener.huiqian == 'zhuban') {
                        $('title').html('<fmt:message code="main.th.ProcessManagement" />');
                    } else if (parent.opener.huiqian == 'huiqian') {
                        $('title').html('<fmt:message code="work.th.huiqian" />');
                    }
                    if (opflag == 1) {
                        $('title').html('<fmt:message code="main.th.ProcessManagement" />');
                    } else if (opflag == 0) {
                        $('title').html('<fmt:message code="work.th.huiqian" />');
                    }
                } else {
                    if (opflag == 1) {
                        $('title').html('<fmt:message code="main.th.ProcessManagement" />');
                    } else if (opflag == 0) {
                        $('title').html('<fmt:message code="work.th.huiqian" />');
                    } else {
                        $('title').html('<fmt:message code="main.newwork" />-' + flowName);
                    }
                }
            }
            if (type) {
                if (type == 'new') {
                    document.title = $('title').attr(type) + '-' + flowName;
                } else {
                    document.title = $('title').attr(type) + '-' + globalData.flowRun.runName
                }
            }
            flowPrcs = data.object.flowRunPrcs.flowPrcs;
            allprcsUserlist = option.allprcsUserlist
            prcsPrivlist = option.prcsPrivlist;
            prcsUserlist = option.prcsUserlist;
            prcsDeptlist = option.prcsDeptlist;
            feedback = data.object.feedback;
            attachPriv = data.object.attachPriv;
            if (checkttachPriv(1)) {
                $('.addFujianBox').show();
            } else {
                $('.addFujianBox').hide();
            }
            allowBack = data.object.allowBack;
            signlock = data.object.signlock;
            countersign = data.object.flowProcesses.countersign
            if (feedback == '1') {
                $('#signText').attr("disabled", "disabled")
            }
            if (countersign == 1) {
                $('#addSign').show();
                $('#addSign').click(function () {
                    layer.open({
                        type: 1,
                        offset: '80px',
                        area: ['600px', '400px'],
                        closeBtn: 2,
                        title: '增加会签人',
                        content: '<div class="modal-body" style=""><div>' +
                            '<textarea name="sign" id="sign" user_id="" style="width: 80%;height: 80px;"></textarea><a href="javascript:;" class="choose" style="color: #1687cb;padding:0px 10px">选择</a><a href="javascript:;" style="color: #1687cb;" class="empty">清空</a>' +
                            '<div style="margin-top: 20px;border: 1px solid #e1e1e8;border-radius: 6px"><div class="signmsg" style="line-height: 32px;background-color: #f3f3f3;border-bottom:1px solid #e1e1e8;font-weight:bold;padding-left: 10px;">当前办理人信息</div>' +
                            '<div style="padding-left: 10px;color:red;line-height:28px">主办人：<span class="zUser">' + globalData.flowRunPrcs.userName + '</span></div>' +
                            '<div style="padding-left: 10px;color:green;line-height:28px">会签人：<span class="signUser"></span></div>' +
                            '</div>' +
                            '</div></div>',
                        btn: ['<fmt:message code="main.th.confirm" />', '<fmt:message code="depatement.th.quxiao" />'],
                        success: function (layero, index) {
//                                    if(globalData.listTurnPriv !="" && globalData.listTurnPriv!= undefined){
//                                        var str=""
//                                        globalData.listTurnPriv.forEach(function(v,i){
//                                            str += '<span class="signUsers">'+v.userName+'，</span>'
//                                        })
//                                        $('.signUser').html(str)
//                                    }
                            $.ajax({
                                url: '/workflow/work/getFlowRunPrecsUser',
                                dataType: 'json',
                                type: 'get',
                                data: {runId: runId, prcsId: prcsId, flowPrcs: flowPrcs},
                                success: function (res) {
                                    if (res.flag) {
                                        if (res.object.length > 0) {
                                            var str = ''
                                            for (var i = 0; i < res.object.length; i++) {
                                                str += '<span class="signUsers">' + res.object[i].userName + '，</span>'
                                            }
                                            $('.signUser').html(str)
                                        }
                                    }
                                }
                            })


//                                    选择会签人
                            $('.choose').click(function () {
                                user_id = 'sign'
                                $.popWindow("../../common/selectUser");
                            })

//                                    清空会签人
                            $('.empty').click(function () {
                                $('#sign').val('')
                                $('#sign').attr('user_id', '')
                            })

                        },
                        yes: function (index, layero) {
                            var textVal = $('#sign').val()
                            var str = ""
                            $('.signUsers').each(function (i, v) {
                                if (textVal.indexOf($(this).html().replace('，', '')) > -1) {
                                    str += $(this).html()
                                }
                            })
                            if (textVal.indexOf($('.zUser').html()) > -1) {
                                str += $('.zUser').html() + ','
                            }

                            if (str != "") {
                                alert('[' + str + ']已经是本步骤的办理人不需要添加')
                                return false;
                            } else {
                                var index = layer.load(1);
                                $.ajax({
                                    url: '/workflow/work/addFeedback',
                                    data: {
                                        runId: runId,
                                        flowId: flowId,
                                        prcsId: prcsId,
                                        flowPrcs: globalData.flowPrcs,
                                        runName: globalData.flowRun.runName,
                                        userId: $('#sign').attr('user_id'),
                                        topFlag: globalData.flowRunPrcs.topFlag
                                    },
                                    success: function (res) {
                                        if (res.flag) {
//                                                    $.layerMsg({content:'添加成功',icon:1})
//                                                    layer.closeAll()
                                            $.ajax({
                                                url: '/workflow/work/getFlowRunPrecsUser',
                                                dataType: 'json',
                                                type: 'get',
                                                data: {runId: runId, prcsId: prcsId, flowPrcs: flowPrcs},
                                                success: function (datas) {
                                                    if (datas.flag) {
                                                        $.layerMsg({content: '添加成功', icon: 1})
                                                        layer.closeAll();
                                                        window.location.reload();
                                                    }
                                                }
                                            })
                                        } else {
                                            $.layerMsg({content: '添加失败', icon: 2})
                                        }
                                    }
                                })

                            }


                        }
                    });
                })
            }

            if (allowBack != 0) {
                $("#goback").show();
                $("#goback").attr("allowBack", allowBack);
                $("#goback").click(function () {
                    gobackIndex = 1;
                    saveFlowData(function (data) {
                        if (data.flag) {
                            $.layerMsg({content: '保存成功！', icon: 1}, function () {
                                $.ajax({
                                    type: "get",
                                    url: "/workflow/work/getflowprcsdata",
                                    dataType: 'JSON',
                                    data: {
                                        prcsId: flowStep,
                                        runId: runId,
                                        allowBack: $('#goback').attr('allowback')
                                    },
                                    success: function (res) {
                                        if (res.flag) {
                                            var feedbackLiObj = "";
                                            res.obj.forEach(function (v, i) {
                                                feedbackLiObj += '<li><input type="radio" name="feedbackstep" class="" flowPrcs="' + v.flowProcess.prcsId + '" ><span class="feedbacktitle"><fmt:message code="workflow.th.First" />' + v.prcsId + '<fmt:message code="workflow.th.step" />' + v.flowProcess.prcsName + '</span><div class="feedbackcontent"><fmt:message code="sup.th.Sponsor" />：' + v.userName + '&nbsp;&nbsp;&nbsp;<fmt:message code="workflow.th.Settlingtime" />：' + v.prcsTime + '</div></li>';
                                            });
                                            layer.open({
                                                type: 1,
                                                offset: '80px',
                                                area: ['800px', '500px'],
                                                closeBtn: 2,
                                                title: titleName,
                                                content: '<div class="modal-body" style="">' +
                                                    '<div class="work-prcs-title" id="op_user_show_info" style="margin-bottom: 10px;font-weight: normal;border-radius: 4px;-webkit-border-radius: 4px;">' +
                                                    '<fmt:message code="document.th.SelectReturnStep" />：' +
                                                    '</div><div class="work-prcs-block">' +
                                                    '<div class="work-prcs-content clearfix" style="border: 1px solid #f3f3f3;"><div class=" workflow-procs-nodes-result-wrap">' +
                                                    '<ul id="work-next-prcs-block" class="workflow-procs-nodes-result" style="top: 0px; margin-left: 30px;word-spacing: 0px;">' + feedbackLiObj +
                                                    '</ul></div></div></div><div class="work-msg-block">' +
                                                    '<div class="work-msgselectUser-title"><a id="msg-control" href="#"><img style="vertical-align: text-top; margin-top: 5px;" src="../../img/workflow/work/add_work/form_down.png"></a> <fmt:message code="document.th.InputReturnOpinion" />：</div>' +
                                                    '<div class="work-msg-content" style="display: block;"><div class="clearfix"><textarea id="feedback" class="backinfo"></textarea>' +
                                                    '</div></div></div></div>',
                                                btn: ['<fmt:message code="main.th.confirm" />', '<fmt:message code="depatement.th.quxiao" />'],
                                                success: function (layero, index) {

                                                },
                                                yes: function (index, layero) {

                                                    var feedback = $('#feedback').val();
                                                    var backflowPrcs = $("input[name='feedbackstep']:checked").attr('flowPrcs');
                                                    if (backflowPrcs == undefined) {
                                                        alert('<fmt:message code="main.th.FallbackStep" />！')
                                                        return false;
                                                    }
                                                    if (feedback == '') {
                                                        alert('<fmt:message code="main.th.ReturnOpinion" />！')
                                                        return false;
                                                    }
                                                    layer.load();
                                                    $.ajax({
                                                        type: "get",
                                                        url: "/workflow/work/insertprcsdata",
                                                        dataType: 'JSON',
                                                        data: {
                                                            flowPrcs: backflowPrcs,
                                                            prcsId: prcsId,
                                                            flowStep: flowStep,
                                                            runId: runId,
                                                            feedback: $('#feedback').val(),
                                                            tableName: tableName,
                                                            tabId: tabId
                                                        },
                                                        success: function (res) {
                                                            if (res.flag) {
                                                                $.layerMsg({
                                                                    content: '<fmt:message code="document.th.RollbackSuccessful" />！',
                                                                    icon: 1
                                                                }, function () {
                                                                    window.close();
                                                                    parent.opener.runWorkListPage();
                                                                });
                                                            } else {
                                                                $.layerMsg({
                                                                    content: '<fmt:message code="document.th.RollbackFailed" />！',
                                                                    icon: 2
                                                                }, function () {
//                                                            layer.closeAll();
                                                                });
                                                            }
                                                        }
                                                    });
                                                }
                                            });
                                        } else {
                                            $.layerMsg({
                                                content: '<fmt:message code="document.th.RollbackFailed" />！',
                                                icon: 2
                                            }, function () {

                                            });
                                        }
                                    },
                                    error: function (res) {
                                        $.layerMsg({
                                            content: '<fmt:message code="document.th.RollbackFailed" />！',
                                            icon: 2
                                        }, function () {

                                        });
                                    }
                                });
                            });
                        } else {
                            $.layerMsg({content: '保存失败！', icon: 2}, function () {

                            });
                        }
                    });

                });
            }
            initSlideBar(prcsId, flowPrcs, runId);
            var obj = data.object.flowRun;

            if (globalData.autoEdit == 0) {
                var titleName = 'NO.&nbsp' + obj.runId + '&nbsp;' + obj.runName;
            } else if (globalData.autoEdit == 1) {
                var titleName = 'NO.&nbsp' + obj.runId + '&nbsp;<input type="text" class="runname" value="' + obj.runName + '" style="width: 300px;font-size: 14px;">';
            }

            $('.num').html(titleName).attr({'title': 'NO.' + obj.runId + ' ' + obj.runName, thisrunName: obj.runName});
            var obj2 = [];
            $('.step').html('<fmt:message code="workflow.th.host" />：(<fmt:message code="workflow.th.First" />' + flowStep + '<fmt:message code="workflow.th.step" />：' + globalData.flowProcesses.prcsName + ')');
            var tablelength = $('#a2 table').length;
            var max = [];
            var thiswidth;
            if (tablelength != 0) {
                for (var i = 0; i < tablelength; i++) {
                    max.push($('#a2 table').eq(i).width());
                }
                for (var i = 0; i < max.length; i++) {
                    if (max[i] > max[i + 1]) {
                        thiswidth = max[i + 1];
                        max[i + 1] = max[i];
                        max[i] = thiswidth;
                    }
                }
                var maxtablewidth = max[max.length - 1];
                if ($('body').width() < maxtablewidth) {
                    $('.content').width(maxtablewidth + 200);
                }
            }

            /*************处理radio类型input在disabled下无法修改样式的问题 通过将已选中的radio 去除掉disabled解决 仅限于工作流-办理页面******************/
            var length = $('input[type=radio]').length;
            if (length != 0) {
                for (var i = 0; i < length; i++) {
                    if ($('input[type=radio]').eq(i).attr('checked') == 'checked') {
                        $('input[type=radio]').eq(i).removeAttr('disabled');
                    }
                }
            }

            /*************处理工作流表单过长，在表单设计器声明特殊标签进行控制START******************/
            if ($('.splitBox').length > 0) {
                $('head').append('<style>' +
                    '.splitTab li {\n' +
                    '    display: inline-block;\n' +
                    '    height: 45px;\n' +
                    '    min-width: 90px;\n' +
                    '}' +
                    '.active {\n' +
                    '    background: #3c92e5 !important;\n' +
                    '    border-radius: 4px;\n' +
                    '    color: #fff !important;\n' +
                    '}' +
                    '.head_title {\n' +
                    '    cursor:pointer;\n' +
                    '    display: inline-block;\n' +
                    '    margin: 7px 10px;\n' +
                    '    padding: 0 10px;\n' +
                    '    height: 30px;\n' +
                    '    line-height: 30px;\n' +
                    '    text-align: center;\n' +
                    '    font-size: 10pt;\n' +
                    '    border: 1px solid #3c92e5;\n' +
                    '    border-radius: 4px;\n' +
                    '    color: #3c92e5;\n' +
                    '}' +
                    '.head_title:hover {\n' +
                    '    border: 1px solid #3b8eef;\n' +
                    '    color: #ffffff;\n' +
                    '    background-color: #3b8eef;\n' +
                    '    background-image: -moz-linear-gradient(top, #3b8eef, #3b8eef);\n' +
                    '    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3b8eef), to(#3b8eef));\n' +
                    '    background-image: -webkit-linear-gradient(top, #3b8eef, #3b8eef);\n' +
                    '    background-image: -o-linear-gradient(top, #3b8eef, #3b8eef);\n' +
                    '    background-image: linear-gradient(to bottom, #3b8eef, #3b8eef);\n' +
                    '    background-repeat: repeat-x;\n' +
                    '    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#3b8eef\', endColorstr=\'#3b8eef\', GradientType=0);\n' +
                    '    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n' +
                    '}' +
                    '.splitTab{    ' +
                    '    width: 100%;\n' +
                    '    height: 50px;\n' +
                    '    position: fixed;\n' +
                    '    top: 45px;\n' +
                    '    z-index: 10000;\n' +
                    '    background: #fff;\n' +
                    '    display: none;' +
                    '}</style>'
                );
                var str = '';
                for (var i = 0; i < $('.splitItem').length; i++) {
                    var val = $('.splitItem').eq(i).attr('value');
                    str += '<li><span class="head_title">' + val + '</span></li>'
                }
                if ($('.splitItem').length > 0) {
                    str += '<li><span class="head_title all">显示全部</span></li>'
                }
                $('.splitTab').html(str).show();
                $('.splitBox').hide().eq(0).show();
                $('.splitTab li span').eq(0).addClass('active');
                $('.splitTab').on('click', 'li', function () {
                    $(this).siblings().find('span').removeClass('active');
                    $(this).find('span').addClass('active');
                    if ($(this).find('span').hasClass('all')) {
                        $('.splitBox').show();
                    } else {
                        var num = $(this).index();
                        $('.splitBox').eq(num).show().siblings().hide();
                    }
                });
            }
            /**************************************END*****************************************/
        });

        // 更多操作 归档
        $('#guidang').click(function () {
            var $url = window.location.href.split('?')[1];
            var $html = $('<div id="ifDiv" style="display:none;">' +
                '<iframe src="/workflow/work/workformPreView?' + $url + '" frameborder="0"></iframe>' +
                '</div>')
            $('body').append($html)
            var l = $('#ifDiv iframe'), a = null;
            var f = setInterval(function () {
                try {
                    a = l.contents().find("#client").html();

                } catch (i) {

                    clearInterval(f);
                }
                if (a) {
                    clearInterval(f);
                    openFile(a)
                }
            }, 300);
        });
        // 更多操作-导出
        $('#daochu').click(function () {
            var $url = window.location.href.split('?')[1];
            var $html = $('<div id="ifDiv" style="display:none;">' +
                '<iframe src="/workflow/work/workformPreView?' + $url + '" frameborder="0"></iframe>' +
                '</div>')
            $('body').append($html)
            var l = $('#ifDiv iframe'), a = null;
            var f = setInterval(function () {
                try {
                    a = l.contents().find("#client").html();

                } catch (i) {
                    clearInterval(f);
                }
                if (a) {
                    clearInterval(f);
                    openFiledaochu(a)
                }
            }, 300);

        });

        $('#fenxiang').click(function () {
            window.open("/workflow/work/notifyWork?flowId=" + flowId + "&type=todo&prcsId=" + prcsId + "&flowStep=" + flowStep + "&runId=" + runId);
        });

        $('.rig_h1one').click(function () {
            $('.floatRight').toggle();
        });

        $('#cancleBtn').click(function () {
            var r = confirm("是否保存此工作？")
            if (r == true) {
                saveFlowData(function (data) {
                    if (data.flag) {
                        $.layerMsg({content: '保存成功！', icon: 1}, function () {

                        });
                    } else {
                        $.layerMsg({content: '保存失败！', icon: 2}, function () {

                        });
                    }
                    window.close();
                    if (parent.opener.openRold != undefined) {
                        parent.opener.openRold()
                    }
                    if (parent.opener.runWorkListPage != undefined) {
                        parent.opener.runWorkListPage();
                    }
                });
            } else {
                if (type == 'new') {
                    $.ajax({
                        type: "get",
                        url: "deleteRunPrcs",
                        dataType: 'JSON',
                        data: {
                            id: globalData.flowRunPrcs.id
                        },
                        success: function (obj) {
                            window.close();
                            if (parent.opener.openRold != undefined) {
                                parent.opener.openRold()
                            }
                        }
                    });
                } else {
                    window.close();
                    if (parent.opener.openRold != undefined) {
                        parent.opener.openRold()
                    }
                }
            }

        });

        $('#oneUploadFile').delegate('.downloadBtn', 'click', function () {
            var _this = $(this);
            if (checkttachPriv(4)) {
                var url = _this.attr("atturl")
//                    alert("../../download?"+url);
                window.location = "../../download?" + url;
            } else {
                $.layerMsg({content: '<fmt:message code="document.th.permissionDownload" />！', icon: 6}, function () {
                });
            }
        });

        $('#oneUploadFile').on('click', '.deletefileBtn', function () {
            var _this = $(this);
            var url = 'deletework?runId=' + runId + '&' + _this.attr("atturl");
            $.layerConfirm({
                title: '<fmt:message code="menuSSetting.th.suredeleteMenu" />',
                content: '<fmt:message code="workflow.th.que" />？',
                icon: 0
            }, function () {
                $.get(url, function (data, status) {
                    if (data.flag) {
                        $.layerMsg({content: '<fmt:message code="workflow.th.delsucess" />！', icon: 1}, function () {
                        });
                        _this.parent().parent().remove();
                        if ($('#oneUploadFile li').length == 0) {
                            $('#oneUploadFile').hide();
                            $('#img_none').show();
                        }
                    } else {
                        $.layerMsg({content: '<fmt:message code="lang.th.deleSucess" />！', icon: 2}, function () {

                        });
                    }
                });
            }, function () {

            });
        });

        $('#oneUploadFile').on('click', '.previewBtn', function () {
            var _this = $(this);
            var atturl = _this.attr("atturl");
            if ($.UrlGetRequest('?' + atturl) != 'doc' && $.UrlGetRequest('?' + atturl) != 'docx' && $.UrlGetRequest('?' + atturl) != 'xls' && $.UrlGetRequest('?' + atturl) != 'xlsx' && $.UrlGetRequest('?' + atturl) != 'ppt' && $.UrlGetRequest('?' + atturl) != 'pptx' && $.UrlGetRequest('?' + atturl) != 'wps') {
                var fomat = atturl.split('&ATTACHMENT_NAME=')[1];
                var index = fomat.lastIndexOf("\.");
                fomat = fomat.substring(index + 1, fomat.length);

            } else {
                var fomat = $.UrlGetRequest('?' + atturl);
            }
            pdurl(fomat, atturl);
        });

        $('#oneUploadFile').on('click', '.editBtn', function () {
            var _this = $(this);
            var atturl = _this.attr("atturl");

            if (checkttachPriv(2)) {
                $.popWindow("../../common/webOffice?documentEditPriv=1&ntType=1&emailList=1&print=1&" + atturl, '<fmt:message code="main.th.PreviewPage" />', '0', '0', '1500px', '800px');
            } else {
                $.layerMsg({content: '<fmt:message code="document.th.HaveEditRights" />！', icon: 6}, function () {

                });
            }
        });

        $('#print').click(function () {

            window.open('workformPreView?flowId=' + flowId + '&prcsId=' + prcsId + '&flowStep=' + flowStep + '&runId=' + runId)
        });

        $("#signSendBtn").click(function () {
            if (checkFeeback()) {
                var text = $('#signText').val();
                if (text == '') {
                    $.layerMsg({content: '<fmt:message code="document.th.Countersign" />！', icon: 5}, function () {

                    });
                    return false;
                } else {
                    $.ajax({
                        type: "get",
                        url: "workfeedback",
                        dataType: 'JSON',
                        data: {
                            prcsId: globalData.flowRunPrcs.prcsId,
                            flowPrcs: flowPrcs,
                            runId: runId,
                            content: text,
                            file: '',
                            feedFlag: '0'
                        },
                        success: function (obj) {
                            $('#signText').val('');
                            initSlideBar(prcsId, flowPrcs, runId);
                            workForm.option.eleObject.find('.macrossign').each(function (i, v) {
                                if ($(this).attr('datafld') == 'SYS_FLOW_SIGNTEXT') {
                                    if ($(this).attr('stepType') != "" && $(this).attr('stepType') != undefined) {
                                        stepType = $(this).attr('stepType');
                                        stepValue = $(this).attr('stepValue');
                                        workForm.MacrosRender(true, stepType, stepValue);
                                        workForm.MacrosSignRender(stepType, stepValue);
                                    }
                                }
                            })

                            //下面是兼容通达会签意见代码
                            var arrSign = workForm.option.signText;
                            if (arrSign != undefined && arrSign.length > 0) {
                                var stepType1 = "";
                                var stepValue1 = '';
                                var stepType = "";
                                var stepValue = '';
                                arrSign.forEach(function (v, i) {
                                    var sign = v.match(/#\[MACRO_SIGN(\d*)(\*?)\]\[([\S\s]*?)\]/i);
                                    if (sign[2] == '*') {
                                        stepType = 'FLOW_PRCS';
                                        stepValue += sign[1] + ',';
                                    } else {
                                        stepType1 = 'PRCS_ID';
                                        stepValue1 += sign[1] + ',';
                                    }
                                })
                                if (stepType != '') {
                                    macroSign(stepType, stepValue, '.cont_form');
                                }
                                if (stepType1 != '') {
                                    macroSign(stepType1, stepValue1, '.cont_form');
                                }
                            }
                        }
                    });
                }

            } else {
                $.layerMsg({
                    content: '<fmt:message code="document.th.permissionToCountersign" />！',
                    icon: 6
                }, function () {

                });
            }
        });
        //点击会签意见编辑
        $(document).on('click', '.edit', function () {

            var id = $(this).parents('li').attr('id');
            var content = $(this).parents('li').find('.cesdiv').html();
            var flowNum = $(this).parents('li').attr('flowNum');
            $(this).addClass('save').removeClass('edit').find('img').attr('src', '/img/workflow/work/yes.png');
            $(this).parents('li').find('.area').show();
            $(this).parents('li').find('#signText').val(content);
            $(this).parents('li').find('.cesdiv').hide();

        });
        //点击保存会签意见
        $(document).on('click', '.save', function () {
            var id = $(this).parents('li').attr('id');
            var content = $(this).parents('li').find('#signText').val();
            var prcsId = $(this).parents('li').attr('flowNum');
//                var prcsId = $(this).parents('li').attr('prcsId');
            var flowPrcs = $(this).parents('li').attr('flowPrcs');
            var runId = $(this).parents('li').attr('runId');
            $.ajax({
                url: '/form/updateContent',
                dataType: 'json',
                type: 'get',
                data: {
                    feedId: id,
                    content: content
                },
                success: function (res) {
                    if (res.flag) {
                        $(this).parents('li').find('#signText').val('');
                        initSign(prcsId, flowPrcs, runId);
                        getSign(runId);
                        workForm.MacrosRender(true);
                        workForm.MacrosSignRender();
                        //下面是兼容通达会签意见代码
                        // var macrosSign = workForm.option.eleObject[0].innerHTML;
                        var arrSign = workForm.option.signText;
                        // console.log(arrSign)

                        if (arrSign != undefined && arrSign.length > 0) {
                            var stepType1 = "";
                            var stepValue1 = '';
                            var stepType = "";
                            var stepValue = '';
                            arrSign.forEach(function (v, i) {
                                var sign = v.match(/#\[MACRO_SIGN(\d*)(\*?)\]\[([\S\s]*?)\]/i);
                                if (sign[2] == '*') {
                                    stepType = 'FLOW_PRCS';
                                    stepValue += sign[1] + ',';
                                } else {
                                    stepType1 = 'PRCS_ID';
                                    stepValue1 += sign[1] + ',';
                                }
                            })
                            if (stepType != '') {
                                macroSign(stepType, stepValue, '.cont_form');
                            }
                            if (stepType1 != '') {
                                macroSign(stepType1, stepValue1, '.cont_form');
                            }
                        }
                    }
                }
            })
        });
        // 删除会签意见
        $(document).on('click', '.del', function () {
            var id = $(this).parents('li').attr('id');
            var prcsId = $(this).parents('li').attr('flowNum');
            var flowPrcs = $(this).parents('li').attr('flowPrcs');
            var runId = $(this).parents('li').attr('runId');
            layer.confirm(' 确定要删除该会签意见吗？', {
                btn: [' <fmt:message  code="global.lang.ok"/>', ' <fmt:message  code="depatement.th.quxiao"/>'], //按钮
                title: " <fmt:message code="common.th.prompt" />"
            }, function () {
                $.ajax({
                    url: '/form/deleteContent',
                    dataType: 'json',
                    type: 'get',
                    data: {
                        feedId: id
                    },
                    success: function (res) {
                        if (res.flag) {
                            initSign(prcsId, flowPrcs, runId);
                            getSign(runId);
                            workForm.option.eleObject.find('.macrossign').each(function (i, v) {
                                if ($(this).attr('datafld') == 'SYS_FLOW_SIGNTEXT') {
                                    if ($(this).attr('stepType') != "" && $(this).attr('stepType') != undefined) {
                                        stepType = $(this).attr('stepType');
                                        stepValue = $(this).attr('stepValue');
                                        workForm.MacrosRender(true, stepType, stepValue);
                                        workForm.MacrosSignRender(stepType, stepValue);
                                    }
                                }
                            })
                            //下面是兼容通达会签意见代码
                            // var macrosSign = workForm.option.eleObject[0].innerHTML;
                            var arrSign = workForm.option.signText;
                            if (arrSign != undefined && arrSign.length > 0) {
                                var stepType1 = "";
                                var stepValue1 = '';
                                var stepType = "";
                                var stepValue = '';
                                arrSign.forEach(function (v, i) {
                                    var sign = v.match(/#\[MACRO_SIGN(\d*)(\*?)\]\[([\S\s]*?)\]/i);
                                    if (sign[2] == '*') {
                                        stepType = 'FLOW_PRCS';
                                        stepValue += sign[1] + ',';
                                    } else {
                                        stepType1 = 'PRCS_ID';
                                        stepValue1 += sign[1] + ',';
                                    }
                                })
                                if (stepType != '') {
                                    macroSign(stepType, stepValue, '.cont_form');
                                }
                                if (stepType1 != '') {
                                    macroSign(stepType1, stepValue1, '.cont_form');
                                }
                            }
                            layer.closeAll();
                        }
                    }
                })
            }, function () {
                layer.closeAll();
            })


        });

        $('#add_fujian').click(function () {
            if (checkttachPriv(1)) {
                $('#uprunId').val(flowrunId);
                $('#uploadinputimg').click();
            } else {
                $.layerMsg({content: '<fmt:message code="document.th.AttachmentPermission" />！', icon: 6}, function () {
                });
                return;
            }
        });

        $('#uploadinputimg').change(function (e) {
            //预算
            var flowId = workForm.option.flowRun.flowId;
            if (tableName == 'budget') {
                $('#uploadimgform').attr('action', '/budget/workUpload?module=workflow&flag=0')
            }

            layer.load();
            $('#uploadimgform').ajaxSubmit({
                type: 'post',
//                    dataType: 'json',
                success: function (res) {
                    res = $.parseJSON(res);
                    if ($('#uploadinputimg').val() != '') {
                        if (res.flag) {
                            $('#uploadinputimg').val('');
                            var data = res.obj;
                            var str = '';
                            if (checkttachPriv(2)) {
                                var editdisplay = 'display:inline-block;'
                            } else {
                                var editdisplay = 'display: none;'
                            }
                            var deletedisplay = 'display:inline-block;'//可以上传，一定可以删除
                            if (checkttachPriv(4)) {
                                var downloaddisplay = 'display:inline-block;'
                            } else {
                                var downloaddisplay = 'display: none;'
                            }
                            data.forEach(function (v, i) {
                                var arr = v.attachFile.split('.');
                                var imgurl = iconImgType[arr[arr.length - 1]] || '/img/workflow/work/zip.png';
                                var attachName = v.attachName;
                                var fileExtension = attachName.substring(attachName.lastIndexOf(".") + 1, attachName.length);//截取附件文件后缀
                                var attName = encodeURI(attachName).replace(/\+/g, "%2b").replace(/\@/g, "%40").replace(/#/g, "%23").replace(/\&/g, "%26").replace(/\//g, "%2F").replace(/\?/g, "%3F").replace(/\￥/g, "%ef%bf%a5").replace(/$/g, "%24").replace(/\！/g, "%ef%bc%81").replace(/\（/g, "%ef%bc%88").replace(/\）/g, "%ef%bc%89").replace(/\…/g, "%e2%80%a6%e2%80%a6");
                                var fileExtensionName = attName.substring(0, attName.lastIndexOf("."));
                                var attachmentUrl = v.attUrl;
                                attachmentUrl = attachmentUrl.substring(0, attachmentUrl.lastIndexOf("ATTACHMENT_NAME=")) + "ATTACHMENT_NAME=" + fileExtensionName + "." + fileExtension; //处理附件名字

                                var str2 = '';
                                var style = 'margin-left: 0px;';
                                if (fileExtension == 'doc' || fileExtension == 'DOC' || fileExtension == 'docx' || fileExtension == 'DOCX' || fileExtension == 'xls' || fileExtension == 'XLS' || fileExtension == 'xlsx' || fileExtension == 'XLSX' || fileExtension == 'ppt' || fileExtension == 'PPT' || fileExtension == 'pptx' || fileExtension == 'PPTX') {
                                    str2 = '<h2 attUrl="' + attachmentUrl + '" class="editBtn item_wordH2" style="' + editdisplay + '"><fmt:message code="global.lang.edit" /></h2> ';
                                }
                                str += ' <li><div class="item_logo"><img src="' + imgurl + '"></div>' +
                                    '<div class="item_word" style="margin-top: 8px;letter-spacing: 1px;"><h1 class="item_wordH1" style="font-size: 11pt;" title="' + v.attachName + '">' + v.attachName + '</h1><h2></h2></div>' +
                                    '<div class="item_word" style="margin-top: 2px;font-size: 9pt;">' + function () {
                                        if (v.attachName.split('.')[1] != 'exe' && v.attachName.split('.')[1] != 'rar' && v.attachName.split('.')[1] != 'zip') {
                                            style = 'margin-left: 10px;';
                                            if (fileExtension == 'pdf' || fileExtension == 'PDF' || fileExtension == 'png' || fileExtension == 'PNG' || fileExtension == 'jpg' || fileExtension == 'JPG' || fileExtension == 'txt' || fileExtension == 'TXT') { //判断是否需要查阅
                                                return '<h1 class="previewBtn item_wordH2" style="margin-left: 0;" attUrl="' + encodeURI(attachmentUrl) + '">查阅</h1>';
                                            } else {
                                                return '<h1 class="previewBtn item_wordH2" style="margin-left: 0;" attUrl="' + attachmentUrl + '">查阅</h1>';
                                            }
                                        } else {
                                            return '';
                                        }
                                    }() + '<h1 class="downloadBtn item_wordH2" attUrl="' + encodeURI(attachmentUrl) + '" style="' + style + downloaddisplay + '"><fmt:message code="file.th.download" /></h1>' +
                                    str2 +
                                    '<h1 class="deletefileBtn item_wordH2" attUrl="' + encodeURI(attachmentUrl) + '" style="' + deletedisplay + '"><fmt:message code="global.lang.delete" /></h1>' +
                                    '</div></li>';
                            });
                            if ($('#img_none') != null || $('#img_none') != undefined) {
                                $('#img_none').hide();
                            }
                            layer.closeAll();
                            $.layerMsg({content: '上传成功！', icon: 1}, function () {
                            });
                            $('#oneUploadFile').show();
                            $('#oneUploadFile').append(str)
                        } else {
                            layer.closeAll();
                            $.layerMsg({content: '上传失败！', icon: 2}, function () {
                            });
                        }
                    }
                }
            });
        });

        //第一个
        $('.fujian').on('click', function () {
            $('.fujianhe').hide();
            if ($(this).hasClass('check')) {
                $('.position').click();
            } else {
                $('.fujian').find('a').css('color', '#fff');
                $('.huiqian').find('a').css('color', '#4889f0');
                $(this).siblings().removeClass("check");
                $(this).addClass('check');
                $('#tab_c').css('right', '0px');
                $('#tab_ctwo').hide();
                $('.tab_one').show();
            }
        });
        //第二个
        $('.huiqian').on('click', function () {
            $('.huiqianhe').hide();
            if ($(this).hasClass('check')) {
                $('.position').click();
            } else {
                $('.fujian').find('a').css('color', '#4889f0');
                $(this).find('a').css('color', '#fff');
                $(this).siblings().removeClass("check");
                $(this).addClass('check');
                $('#tab_c').css('right', '0px');
                $('#tab_ctwo').hide();
                $('.tab_one').show();
            }
        });
        //第三个
        $('.liucheng').on('click', function () {
            if ($(this).hasClass('check')) {
                $('.position').click();
            } else {
                $('.huiqian').find('a').css('color', '#4889f0');
                $('.fujian').find('a').css('color', '#4889f0');
                $(this).siblings().removeClass("check");
                $(this).addClass('check');
                $('#tab_c').css('right', '0px');
                $('.cont_cthr').siblings().hide();
                $('.tab_one').hide();
                $('#tab_ctwo').show();
                $('.cont_cthr').show();
                $('#tab_c').scrollTop(99999999999999);
            }
        });
        //第四个
        $('.guanlian').on('click', function () {
            if ($(this).hasClass('check')) {
                $('.position').click();
            } else {
                $('.huiqian').find('a').css('color', '#4889f0');
                $('.fujian').find('a').css('color', '#4889f0');
                $(this).siblings().removeClass("check");
                $(this).addClass('check');
                $('#tab_c').css('right', '0px');
                //$('.cont_cfour').siblings().hide();
                $('.tab_one').hide();
                $('.cont_cthr').hide();
                $('.cont_cfour').hide();
                $('#tab_ctwo').show();
                // if($('.xiaxiang').css('display') == 'none'){
                $('.cont_cfour').show()
                // }else{
                //     $('.xiaxiang').show();
                // }
                // $('.cont_cfour').show();
            }
        });

        $('.position').on('click', function () {
            $('#tab_c').css('right', -($('#tab_c').width() + 30));
            $('.check a').css('color', '#4889f0');
            $('.check').removeClass('check');
        });
        //点击左下角的附件
        $('#attach_name').on('click', function () {
            $('.fujian').click();
        });

        $('#flowImg').click(function () {
//                if(typeof(qt) == 'undefined'){
            eventas = $('.num');
            window.open('../../flowSetting/processDesignToolTwo?flowId=' + flowId + '&rilwId=' + runId + '&type=banli');
            <%--}else{--%>
            <%--new QWebChannel(qt.webChannelTransport, function(channel){--%>
            <%--var content = channel.objects.interface;--%>
            <%--content.xoa_sms('/flowSetting/processDesignToolTwo?flowId='+flowId+'&rilwId='+runId,'<fmt:message code="workflow.th.chart" />',"web_child_url");--%>
            <%--});--%>
            <%--}--%>
        });

        $('#finish').click(function () {
            var flowfun = globalData.flowRun;
            var form_item = $('.special_form_item');
            var sign = $('.sign');
            if (globalData.feedback == '2') {  //如果值为2，判断强制会签
                var flowstep = globalData.flowPrcs
                var arr = [];
                var userId = $.cookie('userId');
//                    console.log(globalData.data)
                if (globalData.data != "" && globalData.data != undefined) {
                    globalData.data.forEach(function (v, i) {
                        arr.push(v.userId)
                    })
                    if (arr.indexOf(userId) < 0) {
                        $.layerMsg({content: '请提交会签意见', icon: 6});
                        return false;
                    }
                } else {
                    $.layerMsg({content: '请提交会签意见', icon: 6});
                    return false;
                }

            }
            //处理会签控件
            if (sign.length != 0) {
                var signdata = [];
                for (var i = 0; i < sign.length; i++) {
                    if (!sign.eq(i).attr('disabled')) {
                        var pre = sign.eq(i).prev();
                        var baseData = {};
                        var value = Mustache.render(pre.find('.eiderarea').eq(pre.find('.eiderarea').length - 1).prop("outerHTML"), {content: ''});
                        baseData["key"] = sign.eq(i).attr('name');
                        baseData["value"] = value;
                        signdata.push(baseData);
                    }
                }
                if (signdata.length != 0) {
                    $.ajax({
                        type: "post",
                        url: "/workflow/work/signControl",
                        dataType: 'JSON',
                        data: {
                            runId: flowfun.runId,
                            flowId: flowId,
                            signdata: JSON.stringify(signdata)
                        },
                        async: false,
                        success: function (res) {
                        }
                    });
                }
            }
            /********传阅会签控件开始**********/
            if (form_item.length != 0) {
                for (var i = 0; i < form_item.length; i++) {
                    var obj = form_item.eq(i);
                    var ismust = obj.attr('ismust');
                    if (ismust == 'true' && $('.countersignature_itemhide').length == 0) {          //适用于设置了当前流程必填字段和当前流程转出条件的流程
                        layer.msg('请签名!', {icon: 1});
                        return false;
                    } else {
                        saveCSNtr_item(obj, function () {
                            if (form_item.length - 1 == i) {
                                var finishdata = {
                                    runId: flowfun.runId,
                                    prcsId: flowStep,
                                    flowPrcs: prcsId,
                                    flowId: flowId,
                                    tableName: tableName,
                                    tabId: tabId
                                };
                                $.ajax({
                                    type: "post",
                                    url: "/workflow/work/saveHandle",
                                    dataType: 'JSON',
                                    data: finishdata,
                                    success: function (res) {
                                        if (res.flag) {
                                            $.layerMsg({
                                                content: '<fmt:message code="diary.th.modify" />！',
                                                icon: 1
                                            }, function () {
                                                window.close();
                                                parent.opener.runWorkListPage();
                                            });
                                        } else {
                                            if (res.msg == '该用户是最后一个无主办人') {
                                                alert(res.msg + '!');
                                                location.reload();
                                            }
                                        }
                                    }
                                });
                            }
                        });
                    }

                }
            } else {
                var finishdata = {
                    runId: flowfun.runId,
                    prcsId: flowStep,
                    flowPrcs: prcsId,
                    flowId: flowId,
                    tableName: tableName,
                    tabId: tabId
                };
                $.ajax({
                    type: "post",
                    url: "/workflow/work/saveHandle",
                    dataType: 'JSON',
                    data: finishdata,
                    success: function (res) {
                        if (res.flag) {
                            $.layerMsg({content: '<fmt:message code="diary.th.modify" />！', icon: 1}, function () {
                                window.close();
                                parent.opener.runWorkListPage();
                            });
                        } else {
                            if (res.msg == '该用户是最后一个无主办人') {
                                alert(res.msg + '!');
                                location.reload();
                            }
                        }
                    }
                });
            }
            /********传阅会签控件结束**********/
        });

        $('#saveform').click(function () {
            //以下代码是将应用中值根据id字段赋值给表单
            var arr = $('#a2 input');//获取表单所有input
            $.each(arr, function (i, val) {

                var thisValue =$("#zw").contents().find('iframe').contents().find('#' + arr[i].title + '').val();//获取 子页面 表单字段值
                $('#a2 input[title="' + arr[i].title + '"]').val(thisValue);//给表单 赋值
            })
            saveFlowData(function (data) {
                if (data.flag) {
                    $.layerMsg({content: '<fmt:message code="diary.th.modify" />！', icon: 1}, function () {

                    });
                } else {
                    $.layerMsg({content: '<fmt:message code="meet.th.SaveFailed" />！', icon: 2}, function () {

                    });
                }

            }, 'noCheck');
        });

        $('#saveform1').click(function () {
            var flowfun = globalData.flowRun;
            var form_item = $('.special_form_item');
            var sign = $('.sign');
            if (globalData.feedback == '2') {  //如果值为2，判断强制会签
                var flowstep = globalData.flowPrcs
                var arr = [];
                var userId = $.cookie('userId');
                if (globalData.data != "" && globalData.data != undefined) {
                    globalData.data.forEach(function (v, i) {
                        arr.push(v.userId)
                    })
                    if (arr.indexOf(userId) < 0) {
                        $.layerMsg({content: '请提交会签意见', icon: 6});
                        return false;
                    }
                } else {
                    $.layerMsg({content: '请提交会签意见', icon: 6});
                    return false;
                }

            }
            //处理会签控件
            if (sign.length != 0) {
                var signdata = [];
                for (var i = 0; i < sign.length; i++) {
                    if (!sign.eq(i).attr('disabled')) {
                        var pre = sign.eq(i).prev();
                        var baseData = {};
                        var value = Mustache.render(pre.find('.eiderarea').eq(pre.find('.eiderarea').length - 1).prop("outerHTML"), {content: ''});
                        baseData["key"] = sign.eq(i).attr('name');
                        baseData["value"] = value;
                        signdata.push(baseData);
                    }
                }
                if (signdata.length != 0) {
                    $.ajax({
                        type: "post",
                        url: "/workflow/work/signControl",
                        dataType: 'JSON',
                        data: {
                            runId: flowfun.runId,
                            flowId: flowId,
                            signdata: JSON.stringify(signdata)
                        },
                        async: false,
                        success: function (res) {
                        }
                    });
                }
            }
            /********传阅会签控件开始**********/
            if (form_item.length != 0) {
                for (var i = 0; i < form_item.length; i++) {
                    var obj = form_item.eq(i);
                    var ismust = obj.attr('ismust');
                    if (ismust == 'true' && $('.countersignature_itemhide').length == 0) {          //适用于设置了当前流程必填字段和当前流程转出条件的流程
                        layer.msg('请签名!', {icon: 1});
                        return false;
                    } else {
                        saveCSNtr_item(obj, function () {
                            $.layerMsg({content: '<fmt:message code="diary.th.modify" />！', icon: 1}, function () {
                                location.reload();
                            });
                        });
                    }

                }
            } else {
                $.layerMsg({content: '<fmt:message code="diary.th.modify" />！', icon: 1}, function () {
                    location.reload();
                });
            }
        });

        $('#saveformback1').click(function () {
            $.layerMsg({content: '<fmt:message code="diary.th.modify" />！', icon: 1}, function () {
                window.close();
            });
        });

        $('#cancleBtn1').click(function () {
            $.layerMsg({content: '<fmt:message code="diary.th.modify" />！', icon: 1}, function () {
                window.close();
            });
        });

        $('#saveformback').click(function () {
            var arr = $('#a2 input');//获取表单所有input
            $.each(arr, function (i, val) {
                // console.log(arr[i].title)//获取表单所有title

                var thisValue =$("#zw").contents().find('iframe').contents().find('#' + arr[i].title + '').val();//获取 子页面 表单字段值
                $('#a2 input[title="' + arr[i].title + '"]').val(thisValue);//给表单 赋值
            })

            saveFlowData(function () {

                window.close();
                if (parent.opener.openRold != undefined) {
                    parent.opener.openRold()
                }
                if (parent.opener.runWorkListPage != undefined) {
                    parent.opener.runWorkListPage();
                }
            }, 'noCheck');
        });
        $('.zhuanjiao').on('click', function () {
            var arr = $('#a2 input');//获取表单所有input
            $.each(arr, function (i, val) {
                var thisValue =$("#zw").contents().find('iframe').contents().find('#' + arr[i].title + '').val();//获取 子页面 表单字段值
                $('#a2 input[title="' + arr[i].title + '"]').val(thisValue);//给表单 赋值
            })

            //预算
            if (tableName == 'budget' && $('.DATA_218').length != 0 && $('.DATA_204').length != 0) {
                if ($('.DATA_204').attr('disabled') != 'disabled') {
                    var num1 = $('.DATA_218').val(), num2 = $('.DATA_204').val();
                    var del = parseInt(num1) - parseInt(num2);
                    var id = $('#DATA_213').val();
                    if (del < 0) {
                        layer.msg('可用金额不得小于实际支出金额', {time: 5000, icon: 2});
                    } else {
                        $.ajax({
                            url: '/budget/upBudgetItemById1',
                            type: 'get',
                            data: {
                                budgetId: id,
                                remainingAmount: del
                            },
                            async: false,
                            dataType: 'json',
                            success: function (res) {
                            }
                        })
                    }
                }
            }
        /*console.log(zw)
                if (undefined != zw.window.hiddenRight  ) {
                    zw.window.hiddenRight();
                }*/


            if (globalData.feedback == '2') {  //如果值为2，判断强制会签
                var flowstep = globalData.flowPrcs
                var arr = [];
                if (globalData.data != "" && globalData.data != undefined) {

                } else {
                    $.layerMsg({content: '请提交会签意见', icon: 6});
                    return false;
                }

            }

            if ('1' == globalData.gatherNodePriv) {
                layer.alert("<fmt:message code="work.th.hebing" />！", {
                    icon: 0,
                    title: 'NO.' + globalData.flowRun.runId + '&nbsp;&nbsp;' + globalData.flowRun.runName,
                    skin: 'layer-ext-moon' //该皮肤由layer.seaning.com友情扩展。关于皮肤的扩展规则，去这里查阅
                })
                return false;
            }
            //保存表格数据的接口
            saveFlowData(function (res) {
                var indexss = layer.load(1);
                if (!res.flag) {
                    alert('<fmt:message code="meet.th.SaveFailed" />！')
                    layer.close(indexss);
                    return false;
                }
                var formLength = globalData.option.formLength;
                var obj = globalData.flowRun;
                var listFp = globalData.listFp
                if (globalData.autoEdit == 0) {
                    var thisrunName = $('.num').attr('thisrunName') || '';
                } else if (globalData.autoEdit == 1) {
                    var thisrunName = $('.runname').val();
                }
                var titleName = '<img src="/img/spicon.png" style="position: absolute;top: 8px;left: 30px;">' + '<span style="display: inline-block;letter-spacing: 0.5px;margin-left: 43px;">' + thisrunName + '</span>';
                var prcsTo;
                var prcsToBycode;
                var turnObj = {};
                if (globalData.flowProcesses.syncDeal == 0) {
                    syncDeal = '';
                    <%--<fmt:message code="workflow.th.Prohibitconcurrency" />--%>
                } else if (globalData.flowProcesses.syncDeal == 1) {
                    syncDeal = '<fmt:message code="work.th.step" />' + '<fmt:message code="workflow.th.AllowConcurrent" />';
                } else if (globalData.flowProcesses.syncDeal == 2) {
                    syncDeal = '<fmt:message code="work.th.step" />' + '<fmt:message code="workflow.th.ForcedConcurrent" />';
                }
                for (var i = 0; i < listFp.length; i++) {
                    var obj2 = listFp[i];
                    if (prcsId == obj2.prcsId) {
                        turnObj = obj2;
                        if (obj2.prcsTo != "") {
                            prcsToBycode = obj2.prcsTo;
                            prcsTo = subPric(obj2.prcsTo, ",");
                            break;
                        }
                        break;
                    }
                }
                if (globalData.flowProcesses.prcsType == '4') {   //循环节点
                    prcsTo.push(prcsId)
                }

                if (prcsTo) {

                    var indexCurrent = 0;
                    var index = 0;
                    var index1 = 0;
                    for (var j = 0; j < prcsTo.length; j++) {
                        index1++;
                        if (j == 1) {
                            nextFlowid = prcsTo[0];
                        }
                        if (prcsTo[j] == '0') {
                            /*************父子流程判断start*********************************/
                            if (globalData.flowRun.parentRun != undefined && globalData.flowRun.parentRun != '' && globalData.flowRun.parentRun != 0) {
                                var specialNmae = 'fatherSonFlow';
                                var obj2;
                                $.ajax({
                                    type: 'post',
                                    url: '/workflow/work/returnPrentFlowUser?runId=' + runId,
                                    async: false,
                                    dataType: 'json',
                                    success: function (data) {
                                        if (data.flag && data.object != undefined) {
                                            obj2 = data.object;
                                        }
                                    }
                                })

                                workflowpricToArray += '<li class="workflow-node-result clearfix fatherSonFlowID" id="userSelectBtn_' + obj2.prcsId + '">' +
                                    '<div class="workflow-node-title"><div class="workflow-node-ops" style="position: relative;"><span class="workflow-node-sp">' + obj2.prcsName + '</span><input type="button" class="userSelectBtn ' + specialNmae + '" name="userSelectBtn" pid="' + obj2.prcsId + '"  value="" topDefault="' + obj2.topDefault + '" flowid="' + obj2.flowId + '"></div> </div>' +
                                    '<div class="users-select-block"><div id="host_op_block_div2" class="clearfix"  style="margin-bottom: 10px;"><input type="hidden" id="PRCS_OP_USER2" data_type="op_user_btn" name="PRCS_OP_USER2" value="admin">' +
                                    '<input type="hidden" id="PRCS_BACK" name="PRCS_BACK" value=""><div class="sponsor">' +
                                    '<a href="#" class="prcs-op-uname" id="TOP_FLAG_SHOW2"><span><fmt:message code="sup.th.Sponsor" /></span>：</a><input type="hidden" id="TOP_FLAG2" name="TOP_FLAG2" value="0">' +
                                    '<div id="TOP_FLAG_SHOW2_menu" class="attach_div small"  pid="' + obj2.prcsId + '" style="display: none; top: 40px; left: 170px;position:absolute;background:#fff;">' +
                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="sup.th.Sponsor" /></a>' +
                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="main.th.FirstReceiverHosting" /></a><a href="javascript:void(0); " style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="workflow.th.NoSponsorWillSign" /></a></div></div>' +
                                    '<input type="text" class="user-tags"  readonly="readonly" id="remind_name_' + obj2.prcsId + '" user_id="' + obj2.autoUserOpReturn + '" style="width: 120px;border-radius: 0px;" value="' + obj2.autoUserOpReturnName + '"></div>' +
                                    '<div id="prcs_op_block_div2" class="clearfix">' +
                                    '<input type="hidden" data_type="op_user_btn" id="PRCS_USER2" name="PRCS_USER2" value="admin,">' +
                                    '<div class="managers"><fmt:message code="workflow.th.Manager" />：</div><textarea class="user-tags" user_id="' + obj2.autoUserReturn + '"  readonly="readonly" topDefault="' + obj2.topDefault + '" id="jingban_' + obj2.prcsId + '" style="width: 240px;">' + obj2.autoUserReturnName + '</textarea></div></div></li>';
                                /*************父子流程判断end*********************************/
                            } else {
                                var specialNmae = '';
                            }
                            if (indexCurrent == 0) {
                                prcsName += '<div class="prcsName prcsName_chang ' + specialNmae + '" style="" prcsId=0><h1><fmt:message code="main.th.EndProcess" /></h1></div>';
                            } else {
                                prcsName += '<div class="prcsName ' + specialNmae + '" style="" prcsId=0><h1><fmt:message code="main.th.EndProcess" /></h1></div>';
                            }
                            index = 1;
                            indexCurrent++;
                        }
                        for (var i = 0; i < listFp.length; i++) {
                            var obj2 = listFp[i];

                            if (obj2.prcsId == prcsTo[j]) {
                                console.log(obj2)
                                checkPrcIn(obj2.prcsIn, obj2.prcsInSet, JSON.parse(res.opt.formdata), JSON.parse(res.opt.fromDataReject), function (res) {
                                    var className = '';
                                    var attrName = '';
                                    if (obj2.childFlow && obj2.childFlow != 0) {
                                        var className = 'SonFlowID';
                                        var attrName = 'childFlow="' + obj2.childFlow + '"';
                                    }

//                                        console.log(res)
                                    if (res.flag) {
                                        if (indexCurrent == 0) {
                                            indexCurrent++;
                                            prcsName += '<div title="' + obj2.prcsName + '" class="prcsName prcsName_chang" style="" prcsId=' + obj2.prcsId + '><h1 >' + obj2.prcsName + '</h1></div>';
                                            if (obj2.topDefault == 0) {
                                                workflowpricToArray += '<li class="workflow-node-result clearfix ' + className + '" id="userSelectBtn_' + obj2.prcsId + '" ' + attrName + '>' +
                                                    '<div class="workflow-node-title"><div class="workflow-node-ops" style="position: relative;"><span class="workflow-node-sp">' + obj2.prcsName + '</span><input type="button" class="userSelectBtn" name="userSelectBtn" pid="' + obj2.prcsId + '"  value="" topDefault="' + obj2.topDefault + '"></div> </div>' +
                                                    '<div class="users-select-block"><div id="host_op_block_div2" class="clearfix"  style="margin-bottom: 10px;"><input type="hidden" id="PRCS_OP_USER2" data_type="op_user_btn" name="PRCS_OP_USER2" value="admin">' +
                                                    '<input type="hidden" id="PRCS_BACK" name="PRCS_BACK" value=""><div class="sponsor">' +
                                                    '<a href="#" class="prcs-op-uname" id="TOP_FLAG_SHOW2"><span><fmt:message code="sup.th.Sponsor" /></span>：</a><input type="hidden" id="TOP_FLAG2" name="TOP_FLAG2" value="0">' +
                                                    '<div id="TOP_FLAG_SHOW2_menu" class="attach_div small"  pid="' + obj2.prcsId + '" style="display: none; top: 40px; left: 170px;position:absolute;background:#fff;">' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="sup.th.Sponsor" /></a>' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="main.th.FirstReceiverHosting" /></a><a href="javascript:void(0); " style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="workflow.th.NoSponsorWillSign" /></a></div></div>' +
                                                    '<input type="text" class="user-tags"  readonly="readonly" id="remind_name_' + obj2.prcsId + '" user_id="" style="width: 120px;border-radius: 0px;"></div>' +
                                                    '<div id="prcs_op_block_div2" class="clearfix">' +
                                                    '<input type="hidden" data_type="op_user_btn" id="PRCS_USER2" name="PRCS_USER2" value="admin,">' +
                                                    '<div class="managers"><fmt:message code="workflow.th.Manager" />：</div><textarea class="user-tags" user_id=""  readonly="readonly" topDefault="' + obj2.topDefault + '" id="jingban_' + obj2.prcsId + '" style="width: 240px;"></textarea></div></div></li>';

                                            } else if (obj2.topDefault == 1) {
                                                workflowpricToArray += '<li class="workflow-node-result clearfix  ' + className + '" id="userSelectBtn_' + obj2.prcsId + '" ' + attrName + '>' +
                                                    '<div class="workflow-node-title"><div class="workflow-node-ops" style="position: relative;"><span class="workflow-node-sp">' + obj2.prcsName + '</span><input type="button" class="userSelectBtn" name="userSelectBtn" pid="' + obj2.prcsId + '"  value="" topDefault="' + obj2.topDefault + '"></div> </div>' +
                                                    '<div class="users-select-block"><div id="host_op_block_div2" class="clearfix"  style="margin-bottom: 10px;"><input type="hidden" id="PRCS_OP_USER2" data_type="op_user_btn" name="PRCS_OP_USER2" value="admin">' +
                                                    '<input type="hidden" id="PRCS_BACK" name="PRCS_BACK" value=""><div class="sponsor">' +
                                                    '<a href="#" class="prcs-op-uname" id="TOP_FLAG_SHOW2"><span><fmt:message code="main.th.FirstReceiverHosting" /></span>：</a><input type="hidden" id="TOP_FLAG2" name="TOP_FLAG2" value="0">' +
                                                    '<div id="TOP_FLAG_SHOW2_menu" class="attach_div small" pid="' + obj2.prcsId + '" style="display: none; top: 40px; left: 170px;position:absolute;background:#fff;">' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="sup.th.Sponsor" /></a>' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="main.th.FirstReceiverHosting" /></a><a href="javascript:void(0); " style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="workflow.th.NoSponsorWillSign" /></a></div></div>' +
                                                    '<input type="text" class="user-tags"  readonly="readonly" id="remind_name_' + obj2.prcsId + '" user_id="" style="width: 120px;border-radius: 0px;display: none;"></div>' +
                                                    '<div id="prcs_op_block_div2" class="clearfix">' +
                                                    '<input type="hidden" data_type="op_user_btn" id="PRCS_USER2" name="PRCS_USER2" value="admin,">' +
                                                    '<div class="managers"><fmt:message code="workflow.th.Manager" />：</div><textarea class="user-tags" user_id=""  readonly="readonly"  topDefault="' + obj2.topDefault + '" id="jingban_' + obj2.prcsId + '" style="width: 240px;"></textarea></div></div></li>';

                                            } else {
                                                workflowpricToArray += '<li class="workflow-node-result clearfix  ' + className + '" id="userSelectBtn_' + obj2.prcsId + '" ' + attrName + '>' +
                                                    '<div class="workflow-node-title"><div class="workflow-node-ops" style="position: relative;"><span class="workflow-node-sp">' + obj2.prcsName + '</span><input type="button" class="userSelectBtn" name="userSelectBtn" pid="' + obj2.prcsId + '"  value="" topDefault="' + obj2.topDefault + '"></div> </div>' +
                                                    '<div class="users-select-block"><div id="host_op_block_div2" class="clearfix"  style="margin-bottom: 10px;"><input type="hidden" id="PRCS_OP_USER2" data_type="op_user_btn" name="PRCS_OP_USER2" value="admin">' +
                                                    '<input type="hidden" id="PRCS_BACK" name="PRCS_BACK" value=""><div class="sponsor">' +
                                                    '<a href="#" class="prcs-op-uname" id="TOP_FLAG_SHOW2"><span><fmt:message code="workflow.th.NoSponsorWillSign" /></span>：</a><input type="hidden" id="TOP_FLAG2" name="TOP_FLAG2" value="0">' +
                                                    '<div id="TOP_FLAG_SHOW2_menu" class="attach_div small"  pid="' + obj2.prcsId + '" style="display: none; top: 40px; left: 170px;position:absolute;background:#fff;">' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="sup.th.Sponsor" /></a>' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="main.th.FirstReceiverHosting" /></a><a href="javascript:void(0); " style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="workflow.th.NoSponsorWillSign" /></a></div></div>' +
                                                    '<input type="text" class="user-tags"  readonly="readonly" id="remind_name_' + obj2.prcsId + '" user_id="" style="width: 120px;border-radius: 0px;display: none;"></div>' +
                                                    '<div id="prcs_op_block_div2" class="clearfix">' +
                                                    '<input type="hidden" data_type="op_user_btn" id="PRCS_USER2" name="PRCS_USER2" value="admin,">' +
                                                    '<div class="managers"><fmt:message code="workflow.th.Manager" />：</div><textarea class="user-tags" user_id=""  readonly="readonly"  topDefault="' + obj2.topDefault + '" id="jingban_' + obj2.prcsId + '" style="width: 240px;"></textarea></div></div></li>';

                                            }
                                        } else {
                                            if (globalData.flowProcesses.syncDeal != 2) {
                                                prcsName += '<div title="' + obj2.prcsName + '" class="prcsName" style="" prcsId=' + obj2.prcsId + '><h1>' + obj2.prcsName + '</h1></div>';

                                            } else {
                                                prcsName += '<div title="' + obj2.prcsName + '" class="prcsName prcsName_chang" style="" prcsId=' + obj2.prcsId + '><h1>' + obj2.prcsName + '</h1></div>';

                                            }
                                            if (obj2.topDefault == 0) {
                                                workflowpricToArray += '<li class="workflow-node-result clearfix hide  ' + className + '" id="userSelectBtn_' + obj2.prcsId + '" ' + attrName + '>' +
                                                    '<div class="workflow-node-title"><div class="workflow-node-ops" style="position: relative;"><span class="workflow-node-sp">' + obj2.prcsName + '</span><input type="button" class="userSelectBtn" name="userSelectBtn" pid="' + obj2.prcsId + '"  value="" topDefault="' + obj2.topDefault + '"></div> </div>' +
                                                    '<div class="users-select-block"><div id="host_op_block_div2" class="clearfix"  style="margin-bottom: 10px;">' +
                                                    '<input type="hidden" id="PRCS_OP_USER2" data_type="op_user_btn" name="PRCS_OP_USER2" value="admin">' +
                                                    '<input type="hidden" id="PRCS_BACK" name="PRCS_BACK" value=""><div class="sponsor">' +
                                                    '<a href="#" class="prcs-op-uname" id="TOP_FLAG_SHOW2"><span><fmt:message code="sup.th.Sponsor" /></span>：</a><input type="hidden" id="TOP_FLAG2" name="TOP_FLAG2" value="0">' +
                                                    '<div id="TOP_FLAG_SHOW2_menu" class="attach_div small"  pid="' + obj2.prcsId + '" style="display: none; top: 40px; left: 170px;position:absolute;background:#fff;">' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="sup.th.Sponsor" /></a>' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="main.th.FirstReceiverHosting" /></a><a href="javascript:void(0); " style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="workflow.th.NoSponsorWillSign" /></a></div></div>' +
                                                    '<input type="text" class="user-tags"  readonly="readonly" id="remind_name_' + obj2.prcsId + '" user_id="" style="width: 120px;border-radius: 0px;"></div>' +
                                                    '<div id="prcs_op_block_div2" class="clearfix">' +
                                                    '<input type="hidden" data_type="op_user_btn" id="PRCS_USER2" name="PRCS_USER2" value="admin,">' +
                                                    '<div class="managers"><fmt:message code="workflow.th.Manager" />：</div><textarea  readonly="readonly" class="user-tags" user_id=""  topDefault="' + obj2.topDefault + '" id="jingban_' + obj2.prcsId + '" style="width: 240px;"></textarea></div></div></li>';

                                            } else if (obj2.topDefault == 1) {
                                                workflowpricToArray += '<li class="workflow-node-result clearfix hide  ' + className + '" id="userSelectBtn_' + obj2.prcsId + '" ' + attrName + '>' +
                                                    '<div class="workflow-node-title"><div class="workflow-node-ops" style="position: relative;"><span class="workflow-node-sp">' + obj2.prcsName + '</span><input type="button" class="userSelectBtn" name="userSelectBtn" pid="' + obj2.prcsId + '"  value="" topDefault="' + obj2.topDefault + '"></div> </div>' +
                                                    '<div class="users-select-block"><div id="host_op_block_div2" class="clearfix"  style="margin-bottom: 10px;">' +
                                                    '<input type="hidden" id="PRCS_OP_USER2" data_type="op_user_btn" name="PRCS_OP_USER2" value="admin">' +
                                                    '<input type="hidden" id="PRCS_BACK" name="PRCS_BACK" value=""><div class="sponsor">' +
                                                    '<a href="#" class="prcs-op-uname" id="TOP_FLAG_SHOW2"><span><fmt:message code="main.th.FirstReceiverHosting" /></span>：</a><input type="hidden" id="TOP_FLAG2" name="TOP_FLAG2" value="0">' +
                                                    '<div id="TOP_FLAG_SHOW2_menu" class="attach_div small"  pid="' + obj2.prcsId + '" style="display: none; top: 40px; left: 170px;position:absolute;background:#fff;">' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="sup.th.Sponsor" /></a>' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="main.th.FirstReceiverHosting" /></a><a href="javascript:void(0); " style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="workflow.th.NoSponsorWillSign" /></a></div></div>' +
                                                    '<input type="text" class="user-tags"  readonly="readonly" id="remind_name_' + obj2.prcsId + '" user_id="" style="width: 120px;border-radius: 0px;display: none;"></div>' +
                                                    '<div id="prcs_op_block_div2" class="clearfix">' +
                                                    '<input type="hidden" data_type="op_user_btn" id="PRCS_USER2" name="PRCS_USER2" value="admin,">' +
                                                    '<div class="managers"><fmt:message code="workflow.th.Manager" />：</div><textarea  readonly="readonly" class="user-tags" user_id=""  topDefault="' + obj2.topDefault + '" id="jingban_' + obj2.prcsId + '" style="width: 240px;"></textarea></div></div></li>';

                                            } else {
                                                workflowpricToArray += '<li class="workflow-node-result clearfix hide  ' + className + '" id="userSelectBtn_' + obj2.prcsId + '" ' + attrName + '>' +
                                                    '<div class="workflow-node-title"><div class="workflow-node-ops" style="position: relative;"><span class="workflow-node-sp">' + obj2.prcsName + '</span><input type="button" class="userSelectBtn" name="userSelectBtn" pid="' + obj2.prcsId + '"  value="" topDefault="' + obj2.topDefault + '"></div> </div>' +
                                                    '<div class="users-select-block"><div id="host_op_block_div2" class="clearfix"  style="margin-bottom: 10px;">' +
                                                    '<input type="hidden" id="PRCS_OP_USER2" data_type="op_user_btn" name="PRCS_OP_USER2" value="admin">' +
                                                    '<input type="hidden" id="PRCS_BACK" name="PRCS_BACK" value=""><div class="sponsor">' +
                                                    '<a href="#" class="prcs-op-uname" id="TOP_FLAG_SHOW2"><span><fmt:message code="workflow.th.NoSponsorWillSign" /></span>：</a><input type="hidden" id="TOP_FLAG2" name="TOP_FLAG2" value="0">' +
                                                    '<div id="TOP_FLAG_SHOW2_menu" class="attach_div small"  pid="' + obj2.prcsId + '" style="display: none; top: 40px; left: 170px;position:absolute;background:#fff;">' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="sup.th.Sponsor" /></a>' +
                                                    '<a href="javascript:void(0);" style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="main.th.FirstReceiverHosting" /></a><a href="javascript:void(0); " style="display:block;text-align:center;padding:0px 5px;line-height:21px;"><fmt:message code="workflow.th.NoSponsorWillSign" /></a></div></div>' +
                                                    '<input type="text" class="user-tags"  readonly="readonly" id="remind_name_' + obj2.prcsId + '" user_id="" style="width: 120px;border-radius: 0px;display: none;"></div>' +
                                                    '<div id="prcs_op_block_div2" class="clearfix">' +
                                                    '<input type="hidden" data_type="op_user_btn" id="PRCS_USER2" name="PRCS_USER2" value="admin,">' +
                                                    '<div class="managers"><fmt:message code="workflow.th.Manager" />：</div><textarea  readonly="readonly" class="user-tags" user_id=""  topDefault="' + obj2.topDefault + '" id="jingban_' + obj2.prcsId + '" style="width: 240px;"></textarea></div></div></li>';
                                            }
                                        }
                                    } else {
                                        prcsName += '<div class="prcsName" style="" prcsId=' + obj2.prcsId + '><span class="tipmsg" style="display: none;" msg="' + obj2.conditionDesc.split('\n')[0] + '"><fmt:message code="main.th.NonConformity" /></span><h1>' + obj2.prcsName + '</h1></div>';

                                    }
                                });

                            }
                        }
                    }
                }


                //找到表格上的内容
                var form_item = $('.cont_form .form_item');
                var realData = [];
                var radioArr = {};
                var modifydata = []
                var flag = false;
                var flowSelectAutoList;
                if (globalData.prcsType == 4) {
                    prcsToBycode += prcsId + ',';
                }

                if (prcsToBycode == undefined) {
                    alert('<fmt:message code="work.th.liucheng" />');
                    layer.close(indexss);
                    return;
                }
                var dataFind = {
                    flowId: flowId,
                    runId: runId,
                    currentFlowPrcs: prcsId
                }
                $.ajax({
                    type: 'get',
                    url: '/syspara/queryOrgScope',
                    dataType: 'json',
                    success: function (reg) {
                        var item = reg.object;
                        if (item.paraValue == 1) {
                            paraValue = 1;
                            $.ajax({
                                url: '/getUserOrg',
                                dataType: 'json',
                                async: false,
                                type: 'get',
                                success: function (res) {
                                    if (res.flag && res.obj.length > 0) {
                                        for (var i = 0; i < res.obj.length; i++) {
                                            deptNo += res.obj[i].deptNo + ','
                                        }
                                    }
                                    dataFind.deptNo = deptNo;
                                }
                            })

                        } else {
                            deptNo = ''
                            dataFind.deptNo = deptNo;
                        }

                        $.ajax({
                            type: "get",
                            url: "/workflow/work/getBranch",
                            dataType: 'text',
                            async: false,
                            data: dataFind,
                            success: function (obj) {
                                if (!obj || obj == '') {
                                    return false;
                                    layer.closeAll();
                                }
                                obj = eval('(' + obj + ')');
                                if (obj.flag) {
                                    flowSelectAutoList = obj.obj;
                                    faadata = obj.obj;
                                }
                                var prcsFlag = '<fmt:message code="lang.th.Process" />';
                                fapdata = '<fmt:message code="lang.th.Process" />'
                                checkPrcOut(JSON.parse(res.opt.formdata), JSON.parse(res.opt.fromDataReject), function (res) {
                                    if (res.flag) {
                                        layer.close(indexss);
                                        if (tableName == '') {
                                            var tipMsg = '<fmt:message code="main.th.serialNumber" />：' + globalData.flowRun.runId + '，<fmt:message code="workflow.th.job" />：' + globalData.flowRun.runName;
                                            fatdata = '<fmt:message code="main.th.serialNumber" />：' + globalData.flowRun.runId + '，<fmt:message code="workflow.th.job" />：' + globalData.flowRun.runName;
                                        } else {
                                            var tipMsg = '您有新的公文需要办理，流水号：' + globalData.flowRun.runId + '，<fmt:message code="workflow.th.job" />：' + globalData.flowRun.runName;
                                            fatdata = '您有新的公文需要办理，流水号：' + globalData.flowRun.runId + '，<fmt:message code="workflow.th.job" />：' + globalData.flowRun.runName;

                                        }

                                        if (index == 1 && index1 == 2) {
                                            var content = '<div class="modal-body" style="">' +
                                                '<div style="border: 1px solid #d6d6d6;border-radius: 5px;margin-bottom: 25px;"><div class="work-prcs-title" id="op_user_show_info" style="margin-bottom: 20px;border: none;height: 22px;line-height: 22px;font-weight: normal;position: relative;"><img src="/img/gzlnum1.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="main.th.nextStep" />：<fmt:message code="main.th.currentStep" />' + flowStep + '<fmt:message code="workflow.th.step" /> (' + globalData.flowTypeModel.flowName + ') </span>' +
                                                '<font color="#af0707" style="margin-left: 10px;"><div self_type="self" style="display:inline;">' + globalData.userName + '&nbsp;&nbsp;(' + prcsFlag + ')&nbsp;&nbsp;' + syncDeal + '</div>' +
                                                '<div style="margin-top: -21px;margin-left: 274px;"></div></font></div><div class="work-prcs-block">' +
                                                '<div class="work-prcs-content clearfix" style=""><div class="workflow-procs-nodes-wrap"><ul id="workPrcsData"  class="workflow-procs-nodes"><li class="workflow-node" style="" id="next_prcs_2">' +
                                                prcsName + '<ol></ol> </li></ul></div><div class="workflow-procs-nodes-result-wrap">' +
                                                '<ul id="work-next-prcs-block" class="workflow-procs-nodes-result" style="top: 0px;">' + workflowpricToArray +
                                                '</ul></div></div></div></div>' +
                                                '<div class="work-msg-block hide" id="viewbox" style="margin-bottom: 25px;display:none;"><div class="work-msg-title"><img src="/img/gzlnum2.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="work.th.add" /></span></div><div class="work-msg-content" style="display: block;position: relative;padding: 15px 10px;"><div class="cytitle">传阅人：</div><div class="clearfix" style="margin-left: 233px;"><textarea name="viewUserName" id="viewUserName" dataid="" username="" readonly="" style="width:468px;height: 60px;"></textarea>&nbsp;<a class="orgAdd" id="viewUserNameSelect" tarobj = "viewUserName" style="color: #3691da;margin-left: 5px;">选择</a>&nbsp;<a class="orgClear"  tarobj = "viewUserName" id="viewUserNameClear" style="color: #3691da;margin-left: 15px;">清空</a></div></div></div>' +
                                                '<div class="work-msg-block"><div class="work-msg-title"><img src="/img/gzlnum3.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="main.th.Sendmessage" /></span></div>' +
                                                '<div class="work-msg-content" style="display: block;"><div class="clearfix">' +
                                                '<div data_type="create" class="work-msg-op-title" style="width: 259px;"><div class="gjtitles"><fmt:message code="workflow.th.Initiator" />：</div><span data-id="3" class="addactiveClass sms-check sms-bg sms-bg-static active" style="margin-left: 60px;" title="<fmt:message code="notice.th.remindermessage" />"></span><span class="xuanzhong xuanzhongactive" style="left: 87px;"><fmt:message code="sms.th.remind" /></span>' +
                                                '<span class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                '<span data-id="4" class="addactiveClass email-check email-bg email-bg-static" title="<fmt:message code="main.th.SendSMS" />"></span><span class="xuanzhong xuanzhong1" style="left: 183px;"><fmt:message code="adding.th.duanxin" /></span></div>' +
                                                '<div data_type="managers" class="work-msg-op-title" style="margin-right: 0;width:286px;"><div class="gjtitles" ><fmt:message code="doc.th.AllHandlers" />：</div><span data-id="5" class="addactiveClass sms-check sms-bg sms-bg-static" title="<fmt:message code="notice.th.remindermessage" />" style="margin-left: 90px;"></span><span class="xuanzhong" style="    left: 115px;"><fmt:message code="sms.th.remind" /></span> <span class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                '<span data-id="6" class="addactiveClass email-check email-bg email-bg-static" title="<fmt:message code="main.th.SendSMS" />"></span> <span class="xuanzhong xuanzhong1" style="left: 220px;"><fmt:message code="adding.th.duanxin" /></span></div>' +

                                                '<div data_type="circulate" class="work-msg-op-title" style="margin-right: 0;width:286px;"><div class="gjtitles" >传阅人：</div><span data-id="8" class="addactiveClass sms-check sms-bg sms-bg-static active" title="<fmt:message code="notice.th.remindermessage" />" style="margin-left: 70px;"></span><span class="xuanzhong xuanzhongactive" style="    left: 96px;"><fmt:message code="sms.th.remind" /></span> <span class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                '<span data-id="9" class="addactiveClass email-check email-bg email-bg-static" title="<fmt:message code="main.th.SendSMS" />"></span> <span class="xuanzhong xuanzhong1" style="left: 197px;"><fmt:message code="adding.th.duanxin" /></span></div> ' +

                                                '</div>' +
                                                '<div class="clearfix" style="position: relative;margin: 10px 0;display: none;"><div class="cytitle" style="top: 15px;left: 0px;"><fmt:message code="main.th.RemindHandler" />：</div><div style="margin-left: 150px;"><input type="hidden" name="remind_others_id" id="remind_others_id" value="">' +
                                                '<textarea name="remind_others_name" id="remind_others_name" readonly="" style="width:550px;height: 40px;"></textarea>&nbsp;' +
                                                '<a class="orgAdd" id="others-add" style="color: #3691da;margin-left: 5px;"><fmt:message code="global.lang.select" /></a>&nbsp;<a class="orgClear" style="color: #3691da;margin-left: 5px;" id="others-clear" href="javascript:ClearUser("remind_others_id", "remind_others_name");"><fmt:message code="global.lang.empty" /></a></div>' +
                                                '</div><div class="work-msg-sms-block" style="position: relative;margin-bottom: 10px;height: auto;"><div class="cytitle" style="top: 15px;left: 0px;"><fmt:message code="main.th.ReminderContent" />：</div><div style="margin-left: 150px;"><textarea style="width: 550px;height: 50px;padding: 7px;" name="SMS_CONTENT" id="SMS_CONTENT">' + tipMsg + '</textarea></div>' +
                                                ' </div></div></div></div>'
                                        } else {

                                            if (prcsId != 1) {
                                                var content = '<div class="modal-body" style="">' +
                                                    '<div style="border: 1px solid #d6d6d6;border-radius: 5px;margin-bottom: 25px;"><div class="work-prcs-title" id="op_user_show_info" style="margin-bottom: 20px;border: none;height: 22px;line-height: 22px;font-weight: normal;position: relative;"><img src="/img/gzlnum1.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="main.th.nextStep" />：<fmt:message code="main.th.currentStep" />' + flowStep + '<fmt:message code="workflow.th.step" /> (' + globalData.flowTypeModel.flowName + ') </span>' +
                                                    '<font color="#af0707" style="margin-left: 10px;"><div self_type="self" style="display:inline;">' + globalData.userName + '&nbsp;&nbsp;(' + prcsFlag + ')&nbsp;&nbsp;' + syncDeal + '</div>' +
                                                    '<div style="margin-top: -21px;margin-left: 274px;"></div></font></div><div class="work-prcs-block">' +
                                                    '<div class="work-prcs-content clearfix" style=""><div class="workflow-procs-nodes-wrap"><ul id="workPrcsData"  class="workflow-procs-nodes"><li class="workflow-node" style="" id="next_prcs_2">' +
                                                    prcsName + '<ol></ol> </li></ul></div><div class="workflow-procs-nodes-result-wrap">' +
                                                    '<ul id="work-next-prcs-block" class="workflow-procs-nodes-result" style="top: 0px;">' + workflowpricToArray +
                                                    '</ul></div></div></div></div>' +
                                                    '<div class="work-msg-block hide" id="viewbox" style="margin-bottom: 25px;display:none;"><div class="work-msg-title"><img src="/img/gzlnum2.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="work.th.add" /></span></div><div class="work-msg-content" style="display: block;position: relative;padding: 15px 10px;"><div class="cytitle">传阅人：</div><div class="clearfix" style="margin-left: 233px;"><textarea name="viewUserName" id="viewUserName" dataid="" username="" readonly="" style="width:468px;height: 60px;"></textarea>&nbsp;<a class="orgAdd" id="viewUserNameSelect" tarobj = "viewUserName" style="color: #3691da;margin-left: 5px;">选择</a>&nbsp;<a class="orgClear"  tarobj = "viewUserName" id="viewUserNameClear" style="color: #3691da;margin-left: 15px;">清空</a></div></div></div>' +
                                                    '<div class="work-msg-block"><div class="work-msg-title"><img src="/img/gzlnum3.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="main.th.Sendmessage" /></span></div>' +
                                                    '<div class="work-msg-content" style="display: block;"><div class="clearfix">' +
                                                    '<div data_type="next" class="work-msg-op-title"><div class="gjtitles"><fmt:message code="workflow.th.nextstep" />：</div><span class="addactiveClass sms-check sms-bg sms-bg-static active" style="margin-left: 70px;" data-id="1" title="<fmt:message code="notice.th.remindermessage" />"></span><span class="xuanzhong xuanzhongactive"><fmt:message code="sms.th.remind" /></span><span  class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                    '<span data-id="2" class="addactiveClass email-check email-bg email-bg-static active" title="<fmt:message code="main.th.SendSMS" />"></span><span class="xuanzhong xuanzhong1 xuanzhongactive"><fmt:message code="adding.th.duanxin" /></span>' +
                                                    '</div>' +
                                                    '<div data_type="create" class="work-msg-op-title" style="width: 259px;"><div class="gjtitles"><fmt:message code="workflow.th.Initiator" />：</div><span data-id="3" class="addactiveClass sms-check sms-bg sms-bg-static" style="margin-left: 60px;" title="<fmt:message code="notice.th.remindermessage" />"></span><span class="xuanzhong" style="left: 87px;"><fmt:message code="sms.th.remind" /></span>' +
                                                    '<span class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                    '<span data-id="4" class="addactiveClass email-check email-bg email-bg-static" title="<fmt:message code="main.th.SendSMS" />"></span><span class="xuanzhong xuanzhong1" style="left: 183px;"><fmt:message code="adding.th.duanxin" /></span></div>' +
                                                    '<div data_type="managers" class="work-msg-op-title" style="margin-right: 0;width:286px;"><div class="gjtitles" ><fmt:message code="doc.th.AllHandlers" />：</div><span data-id="5" class="addactiveClass sms-check sms-bg sms-bg-static" title="<fmt:message code="notice.th.remindermessage" />" style="margin-left: 90px;"></span><span class="xuanzhong" style="    left: 115px;"><fmt:message code="sms.th.remind" /></span> <span class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                    '<span data-id="6" class="addactiveClass email-check email-bg email-bg-static" title="<fmt:message code="main.th.SendSMS" />"></span> <span class="xuanzhong xuanzhong1" style="left: 220px;"><fmt:message code="adding.th.duanxin" /></span></div> ' +

                                                    '<div data_type="circulate" class="work-msg-op-title" style="margin-right: 0;width:286px;"><div class="gjtitles" >传阅人：</div><span data-id="8" class="addactiveClass sms-check sms-bg sms-bg-static active" title="<fmt:message code="notice.th.remindermessage" />" style="margin-left: 70px;"></span><span class="xuanzhong xuanzhongactive" style="    left: 96px;"><fmt:message code="sms.th.remind" /></span> <span class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                    '<span data-id="9" class="addactiveClass email-check email-bg email-bg-static" title="<fmt:message code="main.th.SendSMS" />"></span> <span class="xuanzhong xuanzhong1" style="left: 197px;"><fmt:message code="adding.th.duanxin" /></span></div> ' +

                                                    '</div>' +
                                                    '<div class="clearfix" style="position: relative;margin: 10px 0;display: none;"><div class="cytitle" style="top: 15px;left: 0;"><fmt:message code="main.th.RemindHandler" />：</div><div style="margin-left: 150px;"><input type="hidden" name="remind_others_id" id="remind_others_id" value="">' +
                                                    '<textarea name="remind_others_name" id="remind_others_name" readonly="" style="width:550px;height: 40px;"></textarea>&nbsp;' +
                                                    '<a class="orgAdd" id="others-add" style="color: #3691da;margin-left: 5px;"><fmt:message code="global.lang.select" /></a>&nbsp;<a class="orgClear" style="color: #3691da;margin-left: 5px;" id="others-clear" href="javascript:ClearUser("remind_others_id", "remind_others_name");"><fmt:message code="global.lang.empty" /></a></div>' +
                                                    '</div><div class="work-msg-sms-block" style="position: relative;margin-bottom: 10px;height: auto;"><div class="cytitle" style="top: 15px;left: 0;"><fmt:message code="main.th.ReminderContent" />：</div><div style="margin-left: 150px;"><textarea style="width: 550px;height: 50px;padding: 7px;" name="SMS_CONTENT" id="SMS_CONTENT">' + tipMsg + '</textarea></div>' +
                                                    ' </div></div></div></div>';
                                            } else {
                                                var content = '<div class="modal-body" style="">' +
                                                    '<div style="border: 1px solid #d6d6d6;border-radius: 5px;margin-bottom: 25px;"><div class="work-prcs-title" id="op_user_show_info" style="margin-bottom: 20px;border: none;height: 22px;line-height: 22px;font-weight: normal;position: relative;"><img src="/img/gzlnum1.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="main.th.nextStep" />：<fmt:message code="main.th.currentStep" />' + flowStep + '<fmt:message code="workflow.th.step" /> (' + globalData.flowTypeModel.flowName + ') </span>' +
                                                    '<font color="#af0707" style="margin-left: 10px;"><div self_type="self" style="display:inline;">' + globalData.userName + '&nbsp;&nbsp;(' + prcsFlag + ')&nbsp;&nbsp;' + syncDeal + '</div>' +
                                                    '<div style="margin-top: -21px;margin-left: 274px;"></div></font></div><div class="work-prcs-block">' +
                                                    '<div class="work-prcs-content clearfix" style=""><div class="workflow-procs-nodes-wrap"><ul id="workPrcsData"  class="workflow-procs-nodes"><li class="workflow-node" style="" id="next_prcs_2">' +
                                                    prcsName + '<ol></ol> </li></ul></div><div class="workflow-procs-nodes-result-wrap">' +
                                                    '<ul id="work-next-prcs-block" class="workflow-procs-nodes-result" style="top: 0px;">' + workflowpricToArray +
                                                    '</ul></div></div></div></div>' +
                                                    '<div class="work-msg-block hide" id="viewbox" style="margin-bottom: 25px;display:none;"><div class="work-msg-title"><img src="/img/gzlnum2.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="work.th.add" /></span></div><div class="work-msg-content" style="display: block;position: relative;padding: 15px 10px;"><div class="cytitle">传阅人：</div><div class="clearfix" style="margin-left: 233px;"><textarea name="viewUserName" id="viewUserName" dataid="" username="" readonly="" style="width:468px;height: 60px;"></textarea>&nbsp;<a class="orgAdd" id="viewUserNameSelect" tarobj = "viewUserName" style="color: #3691da;margin-left: 5px;">选择</a>&nbsp;<a class="orgClear"  tarobj = "viewUserName" id="viewUserNameClear" style="color: #3691da;margin-left: 15px;">清空</a></div></div></div>' +
                                                    '<div class="work-msg-block"><div class="work-msg-title"><img src="/img/gzlnum3.png" style="position: absolute;top: 5px;"><span style="margin-left: 32px;"><fmt:message code="main.th.Sendmessage" /></span></div>' +
                                                    '<div class="work-msg-content" style="display: block;"><div class="clearfix">' +
                                                    '<div data_type="next" class="work-msg-op-title"><div class="gjtitles"><fmt:message code="workflow.th.nextstep" />：</div><span class="addactiveClass sms-check sms-bg sms-bg-static active" style="margin-left: 70px;" data-id="1" title="<fmt:message code="notice.th.remindermessage" />"></span><span class="xuanzhong xuanzhongactive"><fmt:message code="sms.th.remind" /></span><span  class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                    '<span data-id="2" class="addactiveClass email-check email-bg email-bg-static active" title="<fmt:message code="main.th.SendSMS" />"></span><span class="xuanzhong xuanzhong1 xuanzhongactive"><fmt:message code="adding.th.duanxin" /></span>' +
                                                    '</div>' +

                                                    '<div data_type="circulate" class="work-msg-op-title" style="margin-right: 0;width:286px;"><div class="gjtitles" >传阅人：</div><span data-id="8" class="addactiveClass sms-check sms-bg sms-bg-static active" title="<fmt:message code="notice.th.remindermessage" />" style="margin-left: 70px;"></span><span class="xuanzhong xuanzhongactive" style="    left: 96px;"><fmt:message code="sms.th.remind" /></span> <span class=" mobile-check mobile-bg mobile-bg-static" title="<fmt:message code="main.th.SendSMS" />" style="display:none;"></span>' +
                                                    '<span data-id="9" class="addactiveClass email-check email-bg email-bg-static" title="<fmt:message code="main.th.SendSMS" />"></span> <span class="xuanzhong xuanzhong1" style="left: 197px;"><fmt:message code="adding.th.duanxin" /></span></div> ' +

                                                    '</div>' +
                                                    '<div class="clearfix" style="position: relative;margin: 10px 0;display: none;"><div class="cytitle" style="top: 15px;left: 0px;"><fmt:message code="main.th.RemindHandler" />：</div><div style="margin-left: 150px;"><input type="hidden" name="remind_others_id" id="remind_others_id" value="">' +
                                                    '<textarea name="remind_others_name" id="remind_others_name" readonly="" style="width:550px;height: 40px;"></textarea>&nbsp;' +
                                                    '<a class="orgAdd" id="others-add" style="color: #3691da;margin-left: 5px;"><fmt:message code="global.lang.select" /></a>&nbsp;<a class="orgClear" style="color: #3691da;margin-left: 5px;" id="others-clear" href="javascript:ClearUser("remind_others_id", "remind_others_name");"><fmt:message code="global.lang.empty" /></a></div>' +
                                                    '</div><div class="work-msg-sms-block" style="position: relative;margin-bottom: 10px;height: auto;"><div class="cytitle" style="top: 15px;left: 0px;"><fmt:message code="main.th.ReminderContent" />：</div><div style="margin-left: 150px;"><textarea style="width: 550px;height: 50px;padding: 7px;" name="SMS_CONTENT" id="SMS_CONTENT">' + tipMsg + '</textarea></div>' +
                                                    ' </div></div></div></div>';
                                            }
                                        }

                                        layer.open({
                                            type: 1,
                                            /* skin: 'layui-layer-rim', //加上边框 */
                                            area: ['630px', '480px'],
                                            closeBtn: 0,
                                            title: titleName,
                                            content: content,
                                            btn: ['<fmt:message code="global.lang.ok" />', '<fmt:message code="depatement.th.quxiao" />'],
                                            success: function (layero, index) {
                                                var firtnode = $('#next_prcs_2 .prcsName_chang');
                                                if (firtnode.attr('prcsid') == '0' && !firtnode.hasClass('fatherSonFlow')) {
                                                    $('#work-next-prcs-block li').hide();
                                                }

                                                if (globalData.isViewPriv == '1') {
                                                    $('#viewbox').show();
                                                    var userid = [];
                                                    var username = [];
                                                    if (globalData.listView) {
                                                        globalData.listView.forEach(function (v, i) {
                                                            userid.push(v.userId);
                                                            username.push(v.userName);
                                                        });
                                                    }

                                                    $('#viewUserName').attr('dataid', userid.join(','));
                                                    $('#viewUserName').attr('username', username.join(','));
                                                    $('#viewUserName').attr('user_id', userid.join(','));
                                                    $('#viewUserName').val(username.join(','));
                                                    $('#viewUserNameSelect').click(function () {
                                                        user_id = 'viewUserName';
                                                        $.popWindow("../../common/selectUser");
                                                    });
                                                    $('#viewUserNameClear').click(function () {
                                                        $('#viewUserName').val('');
                                                        $('#viewUserName').attr('username', '');
                                                        $('#viewUserName').attr('dataid', '');
                                                        $('#viewUserName').attr('user_id', '');
                                                        $('#viewUserName').attr('userprivname', '');
                                                    })

                                                    $('#others-clear').click(function () {
                                                        $('#remind_others_name').val('');
                                                        $('#remind_others_name').attr('username', '');
                                                        $('#remind_others_name').attr('dataid', '');
                                                        $('#remind_others_name').attr('user_id', '');
                                                        $('#remind_others_name').attr('userprivname', '');
                                                    })
                                                } else {
                                                    $('div[data_type="circulate"]').hide();
                                                    $('div[data_type="circulate"]').find('.xuanzhong').removeClass('xuanzhongactive')
                                                    $('div[data_type="circulate"]').find('.sms-bg-static').removeClass('active')
                                                }
                                                var pids = $('.workflow-node').find('.prcsName').attr('prcsId')

                                                if (!$.isEmptyObject(flowSelectAutoList)) {  //判断是否可以修改主办人
                                                    $('.userSelectBtn').each(function (i, v) {
                                                        var pids = $(this).attr('pid');
                                                        if (flowSelectAutoList[pids] && flowSelectAutoList[pids].userLock == 0) {
                                                            $('#TOP_FLAG_SHOW2').click(function () {
                                                                globalData.topDefault = 0;
                                                                alert('您无权修改主办人相关选项');
                                                            })
                                                        } else {
                                                            $('.sponsor').mousemove(function () {
                                                                $(this).parent().find('#TOP_FLAG_SHOW2_menu').show();
                                                            })

                                                            $('.attach_div a').mousemove(function () {
                                                                $(this).parent().show();
                                                            })

                                                            $('.attach_div').mouseout(function (e) {
                                                                e.preventDefault();
                                                                $('.attach_div').hide();
                                                            })

                                                            $('.attach_div a').click(function () {
                                                                var _this = $(this);
                                                                var pid = $(this).parent().attr('pid');
                                                                var pids = $('.userSelectBtn').eq(i).attr('pid');
                                                                if (pid == pids) {
                                                                    var index = _this.index();
                                                                    $(this).parents('.sponsor').find('#TOP_FLAG_SHOW2 span').html($(this).html());
                                                                    globalData.topDefault = index;
                                                                    $(this).parent().find('#TOP_FLAG_SHOW2').attr('dataType', index);
                                                                    $('.userSelectBtn').eq(i).attr('topdefault', index);
                                                                    $('#jingban_' + pids).attr('topdefault', index);
                                                                    $('.attach_div ').hide();
                                                                    if (index == 1 || index == 2) {
                                                                        $(this).parents('#host_op_block_div2').find('#remind_name_' + pids).hide();
                                                                    } else {
                                                                        $(this).parents('#host_op_block_div2').find('#remind_name_' + pids).show();
                                                                    }
                                                                }
                                                            })
                                                        }
                                                    })
                                                }
                                                ;

                                                $('.xuanzhong').click(function () {
                                                    $(this).prev().click();
                                                });

                                                $('.addactiveClass').click(function () {
                                                    if ($(this).hasClass('active')) {
                                                        $(this).removeClass('active');
                                                        $(this).next().removeClass('xuanzhongactive');
                                                    } else {
                                                        $(this).addClass('active');
                                                        $(this).next().addClass('xuanzhongactive');
                                                    }
                                                });
                                                //调取选人控件
                                                $('#work-next-prcs-block').on('click', '.userSelectBtn', function () {
                                                    var pid = $(this).attr('pid');
                                                    var topdefault = $(this).attr('topdefault');
                                                    UserItemMain = 'remind_name_' + pid;
                                                    UserItem = 'jingban_' + pid;
                                                    var option = flowSelectAutoList[pid];
                                                    allprcsUserlist = '';
                                                    prcsPrivlist = '';
                                                    prcsUserlist = '';
                                                    prcsDeptlist = '';
                                                    if ($(this).parents('.workflow-node-result').hasClass('SonFlowID')) {
                                                        $.popWindow("/common/selectUserWorkFlowNew?topdefault=" + topdefault + "&flowId=" + $(this).parents('.workflow-node-result').attr('childflow') + "&deptNo=&flowPrcs=1");

                                                    } else {
                                                        if ($(this).hasClass('fatherSonFlow')) {
                                                            $.popWindow("/common/selectUserWorkFlowNew?topdefault=" + topdefault + "&flowId=" + $(this).attr('flowid') + "&deptNo=&flowPrcs=" + pid);

                                                        } else {
                                                            $.popWindow("/common/selectUserWorkFlowNew?topdefault=" + topdefault + "&flowId=" + dataFind.flowId + "&deptNo=" + dataFind.deptNo + "&flowPrcs=" + pid);

                                                        }
                                                    }

                                                });
                                                $('#workPrcsData .prcsName').each(function () {
                                                    var _this = $(this);
                                                    var prcsid = _this.attr('prcsid');
                                                    var obj = flowSelectAutoList[prcsid] || {};
                                                    var autoTypelist = obj.autoTypelist || [];
                                                    var mainprcName = '';
                                                    var mainprcId = '';
                                                    var mainuserPrivName = '';
                                                    var maindeptName = '';
                                                    var overprcName = '';
                                                    var overprcId = '';
                                                    var overuserPrivName = '';
                                                    var overdeptName = '';
                                                    if (autoTypelist && (autoTypelist instanceof Array)) {
                                                        if (autoTypelist.length > 1) {
                                                            autoTypelist.forEach(function (v, i) {
                                                                if (v.opFlag == 1) {
                                                                    mainprcName = v.userName + ',';
                                                                    mainprcId = v.userId + ',';
                                                                    mainuserPrivName = v.userPrivName + ',';
                                                                    maindeptName = v.deptName + ',';
                                                                } else {

                                                                }
                                                                overprcName += v.userName + ',';
                                                                overprcId += v.userId + ',';
                                                                overuserPrivName += v.userPrivName + ',';
                                                                overdeptName += v.deptName + ',';
                                                            });
                                                        } else {
                                                            autoTypelist.forEach(function (v, i) {
                                                                mainprcName += v.userName + ',';
                                                                mainprcId += v.userId + ',';
                                                                mainuserPrivName = v.userPrivName + ',';
                                                                maindeptName = v.deptName + ',';
                                                                overprcName += v.userName + ',';
                                                                overprcId += v.userId + ',';
                                                                overuserPrivName += v.userPrivName + ',';
                                                                overdeptName += v.deptName + ',';
                                                            });
                                                        }

                                                    }
                                                    $('#remind_name_' + prcsid).val(mainprcName);
                                                    $('#remind_name_' + prcsid).attr({
                                                        'user_id': mainprcId,
                                                        'userPrivName': mainuserPrivName,
                                                        'deptName': maindeptName
                                                    });
                                                    $('#jingban_' + prcsid).val(overprcName);
                                                    $('#jingban_' + prcsid).attr({
                                                        'user_id': overprcId,
                                                        'userPrivName': overuserPrivName,
                                                        'deptName': overdeptName
                                                    });
                                                });
                                                //底部选择人员
                                                $('#others-add').on('click', function () {
                                                    user_id = 'remind_others_name';
                                                    $.popWindow("../../common/selectUser");
                                                });

                                                //点击下一步骤，样式的改变
                                                if (globalData.flowProcesses.syncDeal == 2) {//强制并发
                                                    $('#work-next-prcs-block li').show();
                                                    for (var i = 0; i < $('#workPrcsData .prcsName_chang').length; i++) {
                                                        var prcsid = $('#workPrcsData .prcsName_chang').eq(i).attr('prcsid');
                                                        if (prcsid == 0 && $('#workPrcsData .prcsName_chang').length != 1) {
                                                            $('#workPrcsData .prcsName_chang').eq(i).removeClass('prcsName_chang');
                                                        }
                                                    }
                                                    $('.workflow-procs-nodes-wrap').on('click', '.prcsName', function () {
                                                        var _this = $(this);
                                                        if (_this.find('.tipmsg').length > 0) {
                                                            var msg = _this.find('.tipmsg').attr('msg') || '不符合条件！';
                                                            alert(msg);
                                                        }
                                                    });
                                                } else if (globalData.flowProcesses.syncDeal == 1) {//允许并发
                                                    $('.workflow-procs-nodes-wrap').on('click', '.prcsName', function () {
                                                        var _this = $(this);
                                                        if (_this.find('.tipmsg').length > 0) {
                                                            var msg = _this.find('.tipmsg').attr('msg') || '不符合条件！';
                                                            alert(msg);
                                                        } else {
                                                            if (nextFlowid != 0) {
                                                                var $next = $('.work-msg-content .clearfix').eq(1).find('[data_type=next]');
                                                                var $create = $('.work-msg-content .clearfix').eq(1).find('[data_type=create]');
                                                                var $managers = $('.work-msg-content .clearfix').eq(1).find('[data_type=managers]');
                                                                var nextprcsid = _this.attr("prcsid");
                                                                if (_this.attr('class').indexOf('prcsName_chang') == -1) {   //点击未选中的步骤
                                                                    if ($('.prcsName_chang').attr('prcsid') == 0) {          //点击时，选中的是结束流程
                                                                        $('.prcsName_chang').removeClass('prcsName_chang').attr('check', '0');
                                                                    }
                                                                    _this.addClass('prcsName_chang');                        //点击步骤操作
                                                                    _this.attr('check', '1');
                                                                    $('#userSelectBtn_' + nextprcsid).show();
                                                                    $next.show();
                                                                    $('.gjtitles').show();
                                                                    $('.xuanzhong ').show();
                                                                    $('.addactiveClass').eq(0).addClass('active');
                                                                    for (var i = 0; i < $('.addactiveClass').length; i++) {
                                                                        $('.addactiveClass').eq(i).show();
                                                                    }
                                                                    if (nextprcsid == 0) {                                       //点击结束流程
                                                                        var len = $('.prcsName_chang').length;
                                                                        for (var i = len - 1; i > -1; i--) {
                                                                            var prcsid = $('.prcsName_chang').eq(i).attr('prcsid');
                                                                            $('.prcsName_chang').eq(i).removeClass('prcsName_chang').attr('check', '0');
                                                                            $('#userSelectBtn_' + prcsid + '').hide();
                                                                        }
                                                                        if ($('#next_prcs_2 .prcsName_chang').length == 0) {
                                                                            $next.find('.gjtitles').hide();
                                                                            $next.find('.xuanzhong').hide();
                                                                            $next.find('.addactiveClass').hide().removeClass('active');
                                                                            $next.hide();
                                                                            if ($create.length != 0) {
                                                                                $create.find('.addactiveClass').eq(0).addClass('active');
                                                                                $create.find('.xuanzhong').eq(0).addClass('xuanzhongactive');
                                                                            }
                                                                            if ($managers.length != 0) {
                                                                                $managers.find('.addactiveClass').eq(0).addClass('active');
                                                                                $managers.find('.xuanzhong').eq(0).addClass('xuanzhongactive');
                                                                            }
                                                                        }
                                                                        _this.addClass('prcsName_chang');
                                                                        _this.attr('check', '1');
                                                                    }
                                                                } else {                                                         //点击选中的步骤
                                                                    if ($('.prcsName_chang').length > 1) {                       //选中的步骤数大于一个
                                                                        _this.removeClass('prcsName_chang');
                                                                        _this.attr('check', '0');
                                                                        $('#userSelectBtn_' + nextprcsid).hide();
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    });
                                                } else {
                                                    $('.workflow-procs-nodes-wrap').on('click', '.prcsName', function () {
                                                        var _this = $(this);
                                                        if (_this.find('.tipmsg').length > 0) {
                                                            var msg = _this.find('.tipmsg').attr('msg') || '不符合条件！';
                                                            _this.find('.tipmsg').hide();
                                                            alert(msg);
                                                        } else {
                                                            var $next = $('.work-msg-content .clearfix').eq(1).find('[data_type=next]');
                                                            var $create = $('.work-msg-content .clearfix').eq(1).find('[data_type=create]');
                                                            var $managers = $('.work-msg-content .clearfix').eq(1).find('[data_type=managers]');
                                                            if (nextFlowid != 0) {
                                                                _this.siblings().removeClass('prcsName_chang');
                                                                _this.addClass('prcsName_chang');
                                                                _this.siblings().attr('check', '0');
                                                                _this.attr('check', '1');
                                                                var nextFlowid = _this.attr("prcsid");
                                                                $('#work-next-prcs-block .workflow-node-result').hide();
                                                                $('#userSelectBtn_' + nextFlowid).show();
                                                                $next.show();
                                                                $('.gjtitles').show();
                                                                $('.xuanzhong ').show();
                                                                $('.addactiveClass').eq(0).addClass('active');
                                                                for (var i = 0; i < $('.addactiveClass').length; i++) {
                                                                    $('.addactiveClass').eq(i).show();
                                                                }
                                                                /*************父子流程判断start*********************************/
                                                                if (_this.hasClass('fatherSonFlow')) {
                                                                    $('.fatherSonFlowID').show();
                                                                } else {
                                                                    if ($(this).attr('prcsid') == 0) {
                                                                        $next.find('.gjtitles').hide();
                                                                        $next.find('.xuanzhong').hide();
                                                                        $next.find('.addactiveClass').hide().removeClass('active');
                                                                        $next.hide();
                                                                        if ($create.length != 0) {
                                                                            $create.find('.addactiveClass').eq(0).addClass('active');
                                                                            $create.find('.xuanzhong').eq(0).addClass('xuanzhongactive');
                                                                        }
                                                                        if ($managers.length != 0) {
                                                                            $managers.find('.addactiveClass').eq(0).addClass('active');
                                                                            $managers.find('.xuanzhong').eq(0).addClass('xuanzhongactive');
                                                                        }
                                                                    }
                                                                }
                                                                /*************父子流程判断end*********************************/
                                                            } else {
                                                                $('#work-next-prcs-block li').hide();
                                                            }
                                                        }
                                                    })
                                                }
                                            },
                                            yes: function (index, layero) {
                                                <%--var body = layer.getChildFrame('body', index);--%>
                                                <%--var layerLoadindex = layer.load(1);--%>
                                                <%--//按钮【按钮三】的回调--%>
                                                <%--//新建工作之后的保存接口，跳转到我的工作页面--%>
                                                <%--var ret = globalData.flowRun;--%>
                                                <%--var ret3 = globalData.flowRunPrcs;--%>
                                                <%--var listTurnPriv = globalData.listTurnPriv;--%>
                                                <%--var checkTurnPriv = globalData.checkTurnPriv;--%>
                                                <%--var pId = [];--%>
                                                <%--var beginUser = [];--%>
                                                <%--var jingbanUser = [];--%>
                                                <%--var flag = true;--%>
                                                <%--var viewUser = body.find("#viewUserName").attr('user_id') || '';//传阅人--%>
                                                <%--var parentflag = false;--%>
                                                <%--body.find("#workPrcsData .prcsName_chang").each(function () {--%>
                                                    <%--var prcsid = $(this).attr('prcsid');--%>
                                                    <%--pId.push(prcsid);--%>
                                                    <%--/****************父子流程判断经办人主办人的功能start***************************/--%>
                                                    <%--if (prcsid == '0' && $(this).hasClass('fatherSonFlow')) {--%>
                                                        <%--prcsid = body.find(".fatherSonFlowID").attr('id').split('userSelectBtn_')[1];--%>
                                                        <%--var bu = body.find('#remind_name_' + prcsid).attr('user_id');--%>
                                                        <%--var topdefault = body.find('#jingban_' + prcsid).attr('topdefault');--%>
                                                        <%--parentflag = true;--%>
                                                        <%--/****************父子流程经办人主办人功能end***************************/--%>
                                                    <%--} else {--%>
                                                        <%--var bu = body.find('#remind_name_' + prcsid).attr('user_id');--%>
                                                        <%--var topdefault = body.find('#jingban_' + prcsid).attr('topdefault');--%>
                                                    <%--}--%>


                                                    <%--if (bu && bu.indexOf(',') > -1) {--%>
                                                        <%--bu = bu.split(',')[0];--%>
                                                    <%--}--%>
                                                    <%--if (topdefault == 1 || topdefault == 2) {--%>
                                                        <%--bu = "";--%>
                                                    <%--} else {--%>
                                                        <%--if (bu == '') {--%>
                                                            <%--flag = false;--%>
                                                        <%--}--%>
                                                    <%--}--%>
                                                    <%--if (body.find('#jingban_' + prcsid).attr('user_id') === '') {--%>
                                                        <%--flag = false;--%>
                                                    <%--}--%>
                                                    <%--beginUser.push(bu);--%>
                                                    <%--jingbanUser.push(body.find('#jingban_' + prcsid).attr('user_id'));--%>
                                                <%--});--%>

                                                <%--beginUser = beginUser.join(',');--%>
<%--//                                            判断主办人是否允许强制转交--%>
                                                <%--var turnStr = ""--%>
                                                <%--if (listTurnPriv != undefined) {--%>
                                                    <%--for (var i = 0; i < listTurnPriv.length; i++) {--%>
                                                        <%--if (listTurnPriv[i].prcsFlag == '1' || listTurnPriv[i].prcsFlag == '2') {--%>
                                                            <%--turnStr += ' [' + listTurnPriv[i].userName + '] '--%>
                                                        <%--}--%>
                                                    <%--}--%>
                                                <%--}--%>
                                                <%--if (!flag && body.find('#next_prcs_2 .prcsName_chang').find('h1').text() != '<fmt:message code="main.th.EndProcess" />') {--%>
                                                    <%--$.layerMsg({content: '请选择主办人或经办人！', icon: 0}, function () {--%>
                                                        <%--layer.close(layerLoadindex);--%>
                                                        <%--return false;--%>
                                                    <%--});--%>
                                                <%--} else if (checkTurnPriv == '0' && turnStr != "") {--%>
                                                    <%--$.layerMsg({--%>
                                                        <%--content: '经办人' + turnStr + '尚未办理完毕，不能转交流程',--%>
                                                        <%--icon: 0--%>
                                                    <%--}, function () {--%>
                                                        <%--layer.close(layerLoadindex);--%>
                                                        <%--return false;--%>
                                                    <%--});--%>
                                                <%--} else {--%>
                                                    <%--var str = ""--%>
                                                    <%--for (var i = 0; i < body.find('.workflow-node-result').length; i++) {--%>
                                                        <%--if (body.find('.workflow-node-result').eq(i).css('display') != 'none') {--%>
                                                            <%--str += body.find('.workflow-node-result').eq(i).find('textarea').attr('topdefault') + ','--%>
                                                        <%--}--%>
                                                    <%--}--%>
                                                    <%--if (body.find('#next_prcs_2 .prcsName_chang').find('h1').text() == '<fmt:message code="main.th.EndProcess" />') {--%>
                                                        <%--savedData = {--%>
                                                            <%--flowId: ret.flowId,--%>
                                                            <%--runId: ret.runId,--%>
                                                            <%--runName: ret.runName,--%>
                                                            <%--beginTime: ret.beginTime,--%>
                                                            <%--beginUser: beginUser,--%>
                                                            <%--prcsId: ret3.prcsId,--%>
                                                            <%--prcsflag: 1,--%>
                                                            <%--flowPrcs: pId.join(','),--%>
                                                            <%--jingbanUser: jingbanUser.join('|'),--%>
                                                            <%--tableName: tableName,--%>
                                                            <%--tabId: tabId,--%>
                                                            <%--currentPrcsId: prcsId,--%>
                                                            <%--flowStep: flowStep,--%>
                                                            <%--viewUser: viewUser + ',',//viewUser--%>
                                                            <%--topDefault: str--%>
                                                        <%--}--%>
                                                    <%--} else {--%>
                                                        <%--savedData = {--%>
                                                            <%--flowId: ret.flowId,--%>
                                                            <%--runId: ret.runId,--%>
                                                            <%--runName: ret.runName,--%>
                                                            <%--beginTime: ret.beginTime,--%>
                                                            <%--beginUser: beginUser,--%>
                                                            <%--prcsId: ret3.prcsId,--%>
                                                            <%--flowPrcs: pId.join(','),--%>
                                                            <%--prcsflag: 1,--%>
                                                            <%--jingbanUser: jingbanUser.join('|'),--%>
                                                            <%--tableName: tableName,--%>
                                                            <%--tabId: tabId,--%>
                                                            <%--currentPrcsId: prcsId,--%>
                                                            <%--flowStep: flowStep,--%>
                                                            <%--viewUser: viewUser + ',',--%>
                                                            <%--topDefault: str--%>
                                                        <%--}--%>
                                                    <%--}--%>

                                                    <%--var smsTypes = ''--%>
                                                    <%--var smsTypesArr = body.find('.addactiveClass');--%>
                                                    <%--for (var i = 0; i < smsTypesArr.length; i++) {--%>
                                                        <%--if ($(smsTypesArr[i]).hasClass('active')) {--%>
                                                            <%--smsTypes += $(smsTypesArr[i]).attr('data-id') + ','--%>
                                                        <%--}--%>
                                                    <%--}--%>
                                                    <%--savedData.smsType = smsTypes;--%>
                                                    <%--savedData.smsContent = body.find('#SMS_CONTENT').val()--%>
                                                    <%--savedData.orgAdd = body.find('#remind_others_name').attr('user_id') || '';--%>
                                                    var layerLoadindex = layer.load(1);
                                                    //按钮【按钮三】的回调
                                                    //新建工作之后的保存接口，跳转到我的工作页面
                                                    var ret = globalData.flowRun;
                                                    var ret3 = globalData.flowRunPrcs;
                                                    var listTurnPriv = globalData.listTurnPriv;
                                                    var checkTurnPriv = globalData.checkTurnPriv;
                                                    var pId = [];
                                                    var beginUser = [];
                                                    var jingbanUser = [];
                                                    var flag = true;
                                                    var viewUser = $('#viewUserName').attr('user_id') || '';//传阅人
                                                    var parentflag = false;
                                                    $('#workPrcsData .prcsName_chang').each(function () {
                                                    var prcsid = $(this).attr('prcsid');
                                                    pId.push(prcsid);
                                                    /****************父子流程判断经办人主办人的功能start***************************/
                                                    if (prcsid == '0' && $(this).hasClass('fatherSonFlow')) {
                                                    prcsid = $('.fatherSonFlowID').attr('id').split('userSelectBtn_')[1];
                                                    var bu = $('#remind_name_' + prcsid).attr('user_id');
                                                    var topdefault = $('#jingban_' + prcsid).attr('topdefault');
                                                    parentflag = true;
                                                    /****************父子流程经办人主办人功能end***************************/
                                                    } else {
                                                    var bu = $('#remind_name_' + prcsid).attr('user_id');
                                                    var topdefault = $('#jingban_' + prcsid).attr('topdefault');
                                                    }


                                                    if (bu && bu.indexOf(',') > -1) {
                                                    bu = bu.split(',')[0];
                                                    }
                                                    if (topdefault == 1 || topdefault == 2) {
                                                    bu = "";
                                                    } else {
                                                    if (bu == '') {
                                                    flag = false;
                                                    }
                                                    }
                                                    if ($('#jingban_' + prcsid).attr('user_id') === '') {
                                                    flag = false;
                                                    }
                                                    beginUser.push(bu);
                                                    jingbanUser.push($('#jingban_' + prcsid).attr('user_id'));
                                                    });

                                                    beginUser = beginUser.join(',');
                                                    //                                            判断主办人是否允许强制转交
                                                    var turnStr = ""
                                                    if (listTurnPriv != undefined) {
                                                    for (var i = 0; i < listTurnPriv.length; i++) {
                                                    if (listTurnPriv[i].prcsFlag == '1' || listTurnPriv[i].prcsFlag == '2') {
                                                    turnStr += ' [' + listTurnPriv[i].userName + '] '
                                                    }
                                                    }
                                                    }
                                                    if (!flag && $('#next_prcs_2 .prcsName_chang').find('h1').text() != '<fmt:message code="main.th.EndProcess" />') {
                                                    $.layerMsg({content: '请选择主办人或经办人！', icon: 0}, function () {
                                                    layer.close(layerLoadindex);
                                                    return false;
                                                    });
                                                    } else if (checkTurnPriv == '0' && turnStr != "") {
                                                    $.layerMsg({
                                                    content: '经办人' + turnStr + '尚未办理完毕，不能转交流程',
                                                    icon: 0
                                                    }, function () {
                                                    layer.close(layerLoadindex);
                                                    return false;
                                                    });
                                                    } else {
                                                    var str = ""
                                                    for (var i = 0; i < $('.workflow-node-result').length; i++) {
                                                    if ($('.workflow-node-result').eq(i).css('display') != 'none') {
                                                    str += $('.workflow-node-result').eq(i).find('textarea').attr('topdefault') + ','
                                                    }
                                                    }
                                                    if ($('#next_prcs_2 .prcsName_chang').find('h1').text() == '<fmt:message code="main.th.EndProcess" />') {
                                                    savedData = {
                                                    flowId: ret.flowId,
                                                    runId: ret.runId,
                                                    runName: ret.runName,
                                                    beginTime: ret.beginTime,
                                                    beginUser: beginUser,
                                                    prcsId: ret3.prcsId,
                                                    prcsflag: 1,
                                                    flowPrcs: pId.join(','),
                                                    jingbanUser: jingbanUser.join('|'),
                                                    tableName: tableName,
                                                    tabId: tabId,
                                                    currentPrcsId: prcsId,
                                                    flowStep: flowStep,
                                                    viewUser: viewUser + ',',//viewUser
                                                    topDefault: str
                                                    }
                                                    } else {
                                                    savedData = {
                                                    flowId: ret.flowId,
                                                    runId: ret.runId,
                                                    runName: ret.runName,
                                                    beginTime: ret.beginTime,
                                                    beginUser: beginUser,
                                                    prcsId: ret3.prcsId,
                                                    flowPrcs: pId.join(','),
                                                    prcsflag: 1,
                                                    jingbanUser: jingbanUser.join('|'),
                                                    tableName: tableName,
                                                    tabId: tabId,
                                                    currentPrcsId: prcsId,
                                                    flowStep: flowStep,
                                                    viewUser: viewUser + ',',
                                                    topDefault: str
                                                    }
                                                    }

                                                    var smsTypes = ''
                                                    var smsTypesArr = $('.addactiveClass');
                                                    for (var i = 0; i < smsTypesArr.length; i++) {
                                                    if ($(smsTypesArr[i]).hasClass('active')) {
                                                    smsTypes += $(smsTypesArr[i]).attr('data-id') + ','
                                                    }
                                                    }
                                                    savedData.smsType = smsTypes;
                                                    savedData.smsContent = $('#SMS_CONTENT').val()
                                                    savedData.orgAdd = $('#remind_others_name').attr('user_id') || '';
                                                    /* console.log(savedData);
                                                     return false;*/
                                                    //保存的接口
                                                    $.ajax({
                                                        type: "post",
                                                        url: "../../workflow/work/saveWork",
                                                        dataType: 'JSON',
                                                        data: savedData,
                                                        success: function (obj) {
                                                            if (obj.flag == true) {
                                                                $.layerMsg({
                                                                    content: '<fmt:message code="workflow.turn.ok" />',
                                                                    icon: 1
                                                                }, function () {
                                                                    layer.close(layerLoadindex);
                                                                    window.close();
                                                                    if (parent.opener.openRold != undefined) {
                                                                        parent.opener.openRold()
                                                                    }

                                                                    if (parent.opener.runWorkListPage != undefined) {
                                                                        parent.opener.runWorkListPage();
                                                                    }
                                                                });
                                                            } else {
                                                                $.layerMsg({
                                                                    content: '<fmt:message code="meet.th.SaveFailed" />！',
                                                                    icon: 1
                                                                }, function () {
                                                                    layer.close(layerLoadindex);
                                                                });
                                                            }
                                                        }
                                                    });
                                                    if (parentflag) {
                                                        savedData.parentFlowPrcs = $('.fatherSonFlowID').attr('id').split('userSelectBtn_')[1];
                                                        $.ajax({
                                                            type: "post",
                                                            url: "../../workflow/work/finishSonReturnParent",
                                                            dataType: 'JSON',
                                                            async: false,
                                                            data: savedData,
                                                            success: function (obj) {
                                                            }
                                                        });
                                                    }
                                                }
                                            },
                                            btn2: function (index) {
                                                prcsName = "";
                                                nextFlowid = "";
                                                workflowpricToArray = "";
                                                syncDeal = "";
                                                layer.close();
                                              /*  if (zw.window.showRight != undefined) {
                                                    zw.window.showRight();
                                                }*/
                                            }
                                        });


                                    } else {

                                        if (res.msg == "") {
                                            alert('不符合条件')
                                        } else {
                                            alert(res.msg)
                                        }
                                        layer.close(indexss);
                                    }
                                });
                            },
                            error: function (obj) {
                                console.log('error')
                            }
                        });
                    }
                })


            });
        });

        function saveFlowData(cb, isCheckOpt) {
            WebSign_Submit(sign_arr);
            var isCheck = true;
            if (isCheckOpt && isCheckOpt == 'noCheck') {
                isCheck = false;
            }
            var listing = false;
            var flowfun = globalData.flowRun;
            var form_item = $('.cont_form .form_item');
            var realData = [];
            var radioArr = {};
            var modifydata = [];
            var modifydataObject = {};
            var flag = false;
            var arr = [];
            var form_data = false;
            var form_title = '';
            var countersignData = '';
            var thisprcsItem = [], thisprcsItemAuto = [];
            if (globalData.flowProcesses) {
                if (globalData.flowProcesses.prcsItem && globalData.flowProcesses.prcsItem != '') {
                    var thisprcsItem = globalData.flowProcesses.prcsItem.split(',');
                }
                if (globalData.flowProcesses.prcsItemAuto && globalData.flowProcesses.prcsItemAuto != '') {
                    var thisprcsItemAuto = globalData.flowProcesses.prcsItemAuto.split(',');
                }
            }
            for (var i = 0; i < form_item.length; i++) {
                var baseData = {};
                var value = "";
                var obj = form_item.eq(i);
                var datatype = obj.attr("data-type");
                var key = obj.attr("name");
                var title = obj.attr('title') || '';
                if (key == '' || key == undefined) {
                    var j = i + 1;
                    form_data = true;
                    form_title += obj.attr("title") + ',';

                }
                var ismust = obj.attr('ismust');
                if (datatype == "select") {
                    if (obj.val() == null) {
                        value = '';
                    } else {
                        value = obj.val() == 0 ? '' : form_item.eq(i).val();
                    }

                } else if (datatype == "textarea") {
                    value = obj.val();
                    if (obj.hasClass('countersignature_item')) {
                        if (ismust == 'true' && $('.countersignature_itemhide').length == 0) {          //适用于设置了当前流程必填字段和当前流程转出条件的流程
                            layer.msg('请签名!', {icon: 1});
                            return false;
                        } else {
                            saveCSNtr_item(obj);
                        }
                        value = ' ';
                    }
                } else if (datatype == "countersignature_item") {
                    if (!deleteITEMcountersignature_item) {
                        if (ismust == 'true' && $('.countersignature_itemhide').length == 0) {          //适用于设置了当前流程必填字段和当前流程转出条件的流程
                            layer.msg('请签名!', {icon: 1});
                            return false;
                        } else {
                            saveCSNtr_item(obj);
                        }
                    }
                    value = ' ';
                } else if (datatype == "text") {
                    value = obj.val();
                } else if (datatype == "checkbox") {
                    if (obj.is(':checked')) {
                        value = '1';
                    } else {
                        value = '0'
                    }
                } else if (datatype == "macros") {
                    if (obj.attr('type') == "text" || obj[0].type == 'text') {
                        if (obj.attr('datafld') == 'SYS_USERNAME' && obj.attr('orgsignImg') == 1) {
                            if (obj.prev().find('img').attr('src') != undefined && obj.prev().find('img').attr('src') != '') {
                                value = obj.prev().find('img').attr('src')
                            } else {
                                if (obj.val() == '{macros}') {
                                    var datafld = obj.attr('datafld');
                                    value = workForm.tool.getMacrosData(datafld) || ''
                                } else {
                                    value = obj.val();
                                }
                            }
                        } else {
                            if (obj.val() == '{macros}') {
                                var datafld = obj.attr('datafld');
                                value = workForm.tool.getMacrosData(datafld) || ''
                            } else {
                                value = obj.val();
                            }
                        }

                    } else {
                        if (obj.val() > -1 || obj.val() != "") {
                            value = obj.val() + '_' + obj.find("option:selected").text();
                        }
                    }
                } else if (datatype == "radio") {
                    var name = obj.attr('name');
                    if (!radioArr[obj.attr('name')]) {
                        radioArr[obj.attr('name')] = true;
                        if ($("input[name='" + name + "']:checked").length > 0) {
                            value = $("input[name='" + name + "']:checked").val();
                        } else {
                            value = "";
                        }
                    } else {
                        continue;
                    }
                } else if (datatype == "macrossign") {
                    value = obj.html();

                } else if (datatype == "fileupload") {
                    var name = obj.attr('name');
                    $('img[name=' + name + ']').each(function (i, v) {
                        var atturl = $(v).attr('atturl');
                        var url = $(v).attr('src');
                        if (atturl != undefined && atturl != '' && atturl.indexOf(',') > -1) {
                            atturl = atturl.replace(/\,/g, "%2c");
                        }
                        if (url != '/img/fileupload.png' && url != '/img/icon_uploadimg.png') {
                            value += (atturl + '*');
                        }
                    })
                } else if (datatype == "imgupload") {
                    var name = obj.attr('name');
                    $('img[name=' + name + ']').each(function (i, v) {
                        var url = $(v).attr('src');
                        if (url != '/img/icon_uploadimg.png') {
                            var str = decodeURI(url);
                            var strs = str.split('&ATTACHMENT_NAME=')[0];
                            var name = str.split('&ATTACHMENT_NAME=')[1].split('&FILESIZE=')[0];
                            var attName = decodeURI(name).replace(/\%2b/g, "+").replace(/\%40/g, "@").replace(/\%23/g, "#").replace(/\%26/g, "&").replace(/\%2F/g, "/").replace(/\%3F/g, "?").replace(/\%ef%bf%a5/g, "￥").replace(/\%24/g, "$").replace(/\%ef%bc%81/g, "！").replace(/\%ef%bc%88/g, "（").replace(/\%ef%bc%89/g, "）").replace(/\%e2%80%a6%e2%80%a6/g, "…");
                            var atturl = strs + "&ATTACHMENT_NAME=" + attName + "&FILESIZE=" + str.split('&ATTACHMENT_NAME=')[1].split('&FILESIZE=')[1];
                            if (atturl != undefined && atturl != '' && atturl.indexOf(',') > -1) {
                                atturl = atturl.replace(/\,/g, "%2c");
                            }
                            value += (atturl + '*');
                        }
                    })
                } else if (datatype == "sign") {
                    var valueSign = obj.val();
                    var pre = obj.prev();
                    countersignData += obj.attr('name') + ',';
                    if (valueSign) {
                        value = Mustache.render(pre.find('.eiderarea').eq(pre.find('.eiderarea').length - 1).prop("outerHTML"), {content: ''});
                    } else {
                        value = "";
                    }
                } else if (datatype == "userselect") {
                    if (obj.attr('user_id')) {
                        value = (obj.attr('user_id') || '') + '|' + (obj.attr('username') || '');
                    } else {
                        value = obj.attr('username') || '';
                    }

                } else if (datatype == "deptselect") {
                    if (obj.attr('deptid')) {
                        value = (obj.attr('deptid') || '') + '|' + (obj.attr('deptname') || '');
                    } else {
                        value = "";
                    }
                } else if (datatype == "kgsign") {
                    value = (obj.attr('signatureId') || '');
                } else if (datatype == "listing") {
                    var vtrStr = [];
                    var vsumStr = [];
                    obj.find('tr').each(function () {
                        if ($(this).attr('class') != 'listhead' && $(this).attr('class') != 'listfoot') {
                            var listTdObj = $(this).find('td');
                            if ($(this).attr('class') == 'listsum') {
                                listTdObj.each(function (i, v) {
                                    var _this = $(v);
                                    if (_this.attr('class') != 'sumtitle') {
                                        if (_this.html() != '' && _this.html() != '0') {
                                            listing = true;
                                        }
                                        vsumStr.push(_this.html());
                                    }
                                });
                            } else {
                                var vtdStr = [];
                                listTdObj.each(function (i, v) {
                                    var _this = $(v);
                                    var listtype = $(v).attr('listtype');
                                    switch (listtype) {
                                        case 'text':
                                            if (_this.find('input').val() != '' && _this.find('input').val() != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push(_this.find('input').val());
                                            break;
                                        case 'textarea':
                                            if (_this.find('textarea').val() != '' && _this.find('textarea').val() != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push(_this.find('textarea').val());
                                            break;
                                        case 'select':
                                            if (_this.find('select').val() != '' && _this.find('select').val() != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push(_this.find('select').val());
                                            break;
                                        case 'radio':
                                            var name = _this.find('input').eq(0).attr('name');
                                            if ($('input[name="' + name + '"]:checked').val() != '' && $('input[name="' + name + '"]:checked').val() != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push($('input[name="' + name + '"]:checked').val());
                                            break;
                                        case 'checkbox':
                                            var checkboxStr = [];
                                            _this.find('input:checked').each(function (i, v) {
                                                checkboxStr.push($(v).attr('value'));
                                            });
                                            if (checkboxStr.join(',') != '' && checkboxStr.join(',') != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push(checkboxStr.join(','));
                                            break;
                                        case 'datetime':
                                            if (_this.find('input').val() != '' && _this.find('input').val() != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push(_this.find('input').val());
                                            break;
                                        case 'dateAndTime':
                                            if (_this.find('input').val() != '' && _this.find('input').val() != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push(_this.find('input').val());
                                            break;
                                        case 'formula':
                                            if (_this.text() != '' && _this.text() != '0') {
                                                listing = true;
                                            }
                                            vtdStr.push(_this.text())
                                            break;
                                        default:
                                    }

                                });
                                vtrStr.push(vtdStr.join('`'))
                            }

                        }
                    });
                    value = vtrStr.join('\r\n') + '|' + vsumStr.join('`');
                } else if (datatype == 'readcomments') {
                    value = obj.val();
                } else {
                    value = obj.val();
                }

                var isMustValue = value;
                if (datatype == 'sign') {
                    isMustValue = obj.val();
                }
                if (datatype == 'listing') {
                    if (!listing) {
                        isMustValue = '';
                    }
                }
                //针对复选框控件 isMustValue必须等于1或者0 所以需要特殊处理下必填条件下 isMustValue的值
                if (datatype == 'checkbox') {
                    if (isMustValue == '0') {
                        isMustValue = '';
                    }
                }
                //针对宏部门列表控件 isMustValue在选择时 值为“_请选择部门” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_DEPT') {
                    if (isMustValue == '_请选择部门') {
                        isMustValue = '';
                    }
                }
                //针对部门人员（本部门）列表控件 isMustValue在选择时 值为“_请选择人员” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_DEPT_PERSON') {
                    if (isMustValue == '_请选择人员') {
                        isMustValue = '';
                    }
                }
                //针对宏人员列表控件 isMustValue在选择时 值为“_请选择人员” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_USER') {
                    if (isMustValue == '_请选择人员') {
                        isMustValue = '';
                    }
                }
                //针对宏角色列表控件 isMustValue在选择时 值为“_请选择主角色” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_PRIV_ONLY') {
                    if (isMustValue == '_请选择主角色') {
                        isMustValue = '';
                    }
                }
                //针对宏辅助角色列表控件 isMustValue在选择时 值为“_请选择辅助角色” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_PRIV_OTHER') {
                    if (isMustValue == '_请选择辅助角色') {
                        isMustValue = '';
                    }
                }
                //针对宏流程设置所有经办人列表控件 isMustValue在选择时 值为“_请选择” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_PRCSUSER1') {
                    if (isMustValue == '_请选择') {
                        isMustValue = '';
                    }
                }
                //针对宏本步骤设置经办人列表控件 isMustValue在选择时 值为“_请选择” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_PRCSUSER2') {
                    if (isMustValue == '_请选择') {
                        isMustValue = '';
                    }
                }
                //针对宏部门主管（本部门）列表控件 isMustValue在选择时 值为“_请选择人员” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_MANAGER1') {
                    if (isMustValue == '_请选择人员') {
                        isMustValue = '';
                    }
                }
                //针对宏部门主管（上级部门）列表控件 isMustValue在选择时 值为“_请选择人员” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_MANAGER2') {
                    if (isMustValue == '_请选择人员') {
                        isMustValue = '';
                    }
                }
                //针对宏部门主管（一级部门）列表控件 isMustValue在选择时 值为“_请选择人员” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_MANAGER3') {
                    if (isMustValue == '_请选择人员') {
                        isMustValue = '';
                    }
                }
                //针对宏来自sql查询列表控件 isMustValue在选择时 值为“_请选择” 所以需要特殊处理下必填条件下 isMustValue的值
                else if (datatype == "macros" && obj.attr('datafld') == 'SYS_LIST_SQL') {
                    if (isMustValue == '_请选择') {
                        isMustValue = '';
                    }
                }
                if (isCheck && ismust == 'true' && isMustValue == "") {          //适用于设置了当前流程必填字段和当前流程转出条件的流程
                    if (gobackIndex != 1) {                      //适用于设置了当前流程必填字段和当前流程转出条件的流程，点击回退按钮兼容效果
                        flag = true;
                        layer.msg('<fmt:message code="main.th.PleaseFill" />' + obj.attr('title'), {icon: 1});
                        break;
                    }
                }
                if (value == null) {
                    value = '';
                }
                baseData["key"] = key;
                baseData["value"] = value;
                realData.push(baseData);
                arr.push(key);
                if (thisprcsItem.indexOf(title) > -1 || thisprcsItemAuto.indexOf(title) > -1) {
                    modifydata.push(baseData);
                }
                modifydataObject[key] = value;
            }
            gobackIndex = 0;                                     //当前流程,将判断回退按钮点击得索引，回复到0
            var nary = arr.sort();
            var cf = [];
            for (var i = 0; i < nary.length - 1; i++) {
                if (nary[i] == nary[i + 1]) {
                    cf.push(nary[i]);
                }
            }
            if (globalData.autoEdit == 0) {
                var thisrunName = flowfun.runName;
            } else if (globalData.autoEdit == 1) {
                var thisrunName = $('.runname').val();
            }
            /***************特殊的文号表达式功能start************************/
            if (thisrunName != '' && thisrunName.indexOf('{FS') > -1 && thisrunName.indexOf('FE}|[') > -1) {
                var arr = thisrunName.match(/\{FS[^\]]+\]/g);
                var sta = thisrunName.split(arr[0])[0];
                var end = thisrunName.split(arr[arr.length - 1])[1];
                var str = '';
                for (var i = 0; i < arr.length; i++) {
                    if (arr[i].indexOf('[' + prcsId + ']') > -1) {
                        var title = arr[i].split('|[')[0].replace(/\{FS/g, '').replace(/\FE}/g, '');
                        if (modifydataObject[fromDataReject[title]]) {
                            str += modifydataObject[fromDataReject[title]];
                        }
                    } else {
                        str += arr[i];
                    }
                }
                thisrunName = sta + str + end;
            }

            if (globalData.autoEdit == 0) {
                $('.num').html('NO.' + flowfun.runId + ' ' + thisrunName).attr('thisrunName', thisrunName);
            } else if (globalData.autoEdit == 1) {
                $('.runname').val(thisrunName);
            }
            /***************特殊的文号表达式功能end************************/
            //判断表单是否存在控件id值为空或者为undefined
            if (!form_data) {
                //判断表单中name是否有重复
                if (cf.length == 0) {
                    if (!flag) {
                        var fdata = {
                            flowId: flowfun.flowId,
                            formdata: JSON.stringify(realData),
                            runId: flowfun.runId,
                            runName: thisrunName,
                            beginTime: flowfun.beginTime,
                            beginUser: flowfun.beginUser,
                            formLength: globalData.option.formLength,
                            prcsId: flowStep,
                            flowPrcs: prcsId,
                            modifydata: JSON.stringify(modifydata),
                            fromDataReject: JSON.stringify(fromDataReject),
                            tableName: tableName,
                            tabId: tabId,
                            workLevel: $('#level option:selected').val(),
                            countersignData: countersignData
                        };
                        var list = Signature.list;
                        var signatureCreator = Signature.create();
                        var kgsignList = $('.cont_form .kgsign');
                        kgsignList.each(function () {
                            var value = $(this).attr('value');
                            //新增签章
                            var key = ($(this).attr('signatureid') || '').split(',');
                            key.forEach(function (v, i) {
                                if (list[v]) {
                                    signatureCreator.saveSignature(flowfun.runId, v, list[v].getSignatureData());
                                }
                            })
                        });
                        var indexzhuanjiao = layer.load(1);
                        $.ajax({
                            type: "post",
                            url: "../../workflow/work/nextwork",
                            dataType: 'JSON',
                            data: fdata,
                            success: function (res) {
                                $('textarea[data-type=sign]').val('');
                                var data = {};
                                if (cb) {
                                    if (res.flag) {
                                        data['flag'] = true;
                                    } else {
                                        data['flag'] = false;
                                    }
                                    data.data = res.obj;
                                    data.opt = fdata;
                                    layer.close(indexzhuanjiao)
                                    cb(data)
                                }
                            }
                        });
                    }
                } else {
                    var arr2 = [];
                    for (var i = 0; i < cf.length; i++) {
                        var xz = $('[name=' + cf[i] + ']');
                        var arr1 = [];
                        for (var j = 0; j < xz.length; j++) {
                            if (xz.eq(j).attr('title') != undefined) {
                                arr1.push(xz.eq(j).attr('title'));
                            }
                        }
                        arr2.push(arr1);
                    }
                    var syrs = '保存失败，存在重复字段：';
                    for (var z = 0; z < arr2.length; z++) {
                        for (var h = 0; h < arr2[z].length; h++) {
                            var q = h + 1;
                            if (q != arr2[z].length) {
                                syrs += arr2[z][h] + '与'
                            } else {
                                syrs += arr2[z][h] + '；'
                            }
                        }
                    }
                    layer.msg(syrs, {icon: 2});
                }
            } else {
                layer.msg('存在异常字段：' + form_title + '请通知系统管理员前往表单设计器调整表单！', {icon: 2});
            }

        };

        function buildFormData() {
            var arr = {};
            $(".cont_form").find('.form_item').each(function (i, v) {
                var _this = $(this);
                arr[_this.attr('title')] = _this.attr('name');
            });
            return arr;
        };

        function checkttachPriv(privNum) {
            if (attachPriv.indexOf(privNum) > -1) {
                return true;
            }
            return false;
        };

        function checkFeeback() {
            if (feedback != '1') {
                return true;
            }
            return false;
        };

        function initUpload(runId) {
            $.ajax({
                type: "get",
                url: "/workflow/work/findworkUpload",
                dataType: 'JSON',
                data: {
                    runId: runId
                },
                success: function (obj) {
                    if (obj.flag) {
                        var str = '';
                        obj.obj.forEach(function (v, i) {
                            var attachName = v.attachName;
                            var fileExtension = attachName.substring(attachName.lastIndexOf(".") + 1, attachName.length);//截取附件文件后缀
                            var imgurl = iconImgType[fileExtension] || '/img/workflow/work/zip.png';
                            var str2 = '';
                            var style = 'margin-left: 0px;';
                            var downbtn = '';
                            var editbtn = '';
                            var deletebtn = '';
                            var attName = encodeURI(attachName).replace(/\+/g, "%2b").replace(/\@/g, "%40").replace(/\#/g, "%23").replace(/\&/g, "%26").replace(/\//g, "%2F").replace(/\?/g, "%3F").replace(/\￥/g, "%ef%bf%a5").replace(/\$/g, "%24").replace(/\！/g, "%ef%bc%81").replace(/\（/g, "%ef%bc%88").replace(/\）/g, "%ef%bc%89").replace(/\…/g, "%e2%80%a6%e2%80%a6");
                            var fileExtensionName = attName.substring(0, attName.lastIndexOf("."));
                            var attachmentUrl = v.attUrl;
                            attachmentUrl = attachmentUrl.substring(0, attachmentUrl.lastIndexOf("ATTACHMENT_NAME=")) + "ATTACHMENT_NAME=" + fileExtensionName + "." + fileExtension; //处理附件名字
                            if (checkttachPriv(2)) {
                                editbtn = 'display: block;';
                            } else {
                                editbtn = 'display: none;';
                            }
                            if (fileExtension == 'doc' || fileExtension == 'DOC' || fileExtension == 'docx' || fileExtension == 'DOCX' || fileExtension == 'xls' || fileExtension == 'XLS' || fileExtension == 'xlsx' || fileExtension == 'XLSX' || fileExtension == 'ppt' || fileExtension == 'PPT' || fileExtension == 'pptx' || fileExtension == 'PPTX') {
                                str2 = '<h2 attUrl="' + attachmentUrl + '" class="editBtn item_wordH2" style="' + editbtn + '"><fmt:message code="global.lang.edit" /></h2> ';
                            }
                            str += '<li><div class="item_logo"><img src="' + imgurl + '"></div>' +
                                '<div class="item_word" style="margin-top: 8px;letter-spacing: 1px;"><h1 class="item_wordH1" style="font-size: 11pt;" title="' + v.attachName + '">' + v.attachName + '</h1><h2></h2></div>' +
                                '<div class="item_word" style="margin-top: 2px;font-size: 9pt;">' + function () {
                                    if (checkttachPriv(4)) {
                                        downbtn = 'display: block;';
                                    } else {
                                        downbtn = 'display: none;';
                                    }
                                    if (checkttachPriv(3)) {
                                        deletebtn = 'display: block;';
                                    } else {
                                        deletebtn = 'display: none;';
                                    }
                                    if ($.UrlGetRequest('?' + v.attUrl) != 'exe' && $.UrlGetRequest('?' + v.attUrl) != 'rar' && $.UrlGetRequest('?' + v.attUrl) != 'zip' && $.UrlGetRequest('?' + v.attUrl) != 'key' && $.UrlGetRequest('?' + v.attUrl) != 'numbers' && $.UrlGetRequest('?' + v.attUrl) != 'pages') {
                                        style = 'margin-left: 10px;';
                                        if (fileExtension == 'pdf' || fileExtension == 'PDF' || fileExtension == 'png' || fileExtension == 'PNG' || fileExtension == 'jpg' || fileExtension == 'JPG' || fileExtension == 'txt' || fileExtension == 'TXT') { //判断是否需要查阅
                                            return '<h1 class="previewBtn item_wordH2" style="margin-left: 0;" attUrl="' + encodeURI(attachmentUrl) + '">查阅</h1>';
                                        } else {
                                            return '<h1 class="previewBtn item_wordH2" style="margin-left: 0;" attUrl="' + attachmentUrl + '">查阅</h1>';
                                        }
                                    } else {
                                        return '';
                                    }
                                }() + '<h1 class="downloadBtn item_wordH2" attUrl="' + encodeURI(attachmentUrl) + '" style="' + style + downbtn + '"><fmt:message code="file.th.download" /></h1>' +
                                str2 +
                                '<h1 class="deletefileBtn item_wordH2" attUrl="' + encodeURI(attachmentUrl) + '" style="' + deletebtn + '"><fmt:message code="global.lang.delete" /></h1>' +
                                '</div></li>';
                        });
                        if (obj.obj.length > 0) {
                            $('#img_none').hide();
                        }
                        if (obj.obj.length == 0) {
                            $('#oneUploadFile').hide();
                        } else {
                            $('.fujian').append('<div class="he fujianhe">' + obj.obj.length + '</div>');
                        }
                        $('#oneUploadFile').html(str);

                    }

                }
            });
        };

        function initSlideBar(prcsId, flowPrcs, runId) {
            initSign(prcsId, flowPrcs, runId);
            getSign(runId);
            initUpload(runId);
        };

        function checkPrcIn(prcsIn, prcsInSet, formdata, fromDataReject, cb) {
            var res = {
                flag: true,
                msg: ''
            };
            var arrtest = [];
            var prcsInArr = prcsIn.split('\n');

            for (var i = 0; i < prcsInArr.length; i++) {
                if (prcsInArr[i]) {
                    arrtest.push(prcsInArr[i])
                }
            }
            if (arrtest.length == 1 && prcsInSet == '') {
                prcsInSet = '[1]';
            }
            if (prcsInSet != "") {

                formdata = covertToFormData(formdata);

                prcsInArr.forEach(function (v, i) {

                    if (v) {

                        var check_pass = 0;
                        var titleValue = '';
                        if (v.indexOf("'") > -1) {

                            var arr_rule = v.split("'");

                            var item_title = myTrim(arr_rule[1]);
                            var item_con = myTrim(arr_rule[2]);
                            var item_value = myTrim(arr_rule[3]);
                            var item_pag = $('[Id="' + fromDataReject[item_title] + '"]')
                            titleValue = formdata[fromDataReject[item_title]];

                            if (v.indexOf('[') <= -1) {
                                if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_USERNAME' && item_pag.attr('orgsignImg') == 1) {
                                    if (item_pag.prev().find('img').attr('src') != undefined && item_pag.prev().find('img').attr('src') != '' && item_pag.prev().find('img').attr('src').indexOf('AID') >= 0) {
                                        titleValue = item_pag.prev().find('img').attr('src');
                                    } else {
                                        titleValue = formdata[fromDataReject[item_title]];
                                    }
                                } else if (fromDataReject[item_title] && $('#' + fromDataReject[item_title] + '').attr('data-type') == 'userselect') {
                                    var str = $('#' + fromDataReject[item_title] + '').val();
                                    titleValue = str.substr(0, str.length - 1);
                                } else {
                                    titleValue = formdata[fromDataReject[item_title]];
                                }

                                // if(fromDataReject[item_title]&&$('#'+ fromDataReject[item_title] +'').attr('data-type') == 'userselect'){
                                //     var str = $('#'+ fromDataReject[item_title] +'').val();
                                //     titleValue = str.substr(0,str.length-1);
                                // }else{
                                //     titleValue = formdata[fromDataReject[item_title]];
                                // }
                            } else {
                                if (item_title == '[当前步骤号]' || item_title == '[CUR_PRCS_ID]') {
                                    titleValue = globalData.flowRunPrcs.prcsId
                                } else if (item_title == '[当前主办人姓名]' || item_title == '[CUR_USER_NAME]') {
                                    titleValue = globalData.userName;
                                } else if (item_title == '[公共附件名称]' || item_title == '[ATTACH_NAME]') {
                                    titleValue = '';
                                    for (var j = 0; j < $('#oneUploadFile .item_wordH1').length; j++) {
                                        if ($('#oneUploadFile .item_wordH1').length == 1) {
                                            titleValue = GetFileNameNoExt($('#oneUploadFile .item_wordH1').eq(j).attr('title'))
                                        } else {
                                            titleValue += GetFileNameNoExt($('#oneUploadFile .item_wordH1').eq(j).attr('title')) + ','
                                        }
                                    }
                                } else if (item_title == '[公共附件个数]' || item_title == '[ATTACH_COUNT]') {
                                    titleValue = $('#oneUploadFile .item_wordH1').length;
                                } else if (item_title == '[当前流程设计步骤号]' || item_title == '[CUR_FLOW_PRCS]') {
                                    titleValue = globalData.flowRunPrcs.flowPrcs
                                } else if (item_title == '[当前主办人角色]' || item_title == '[CUR_USER_PRIV]') {
                                    titleValue = $.cookie('userPrivName') || workForm.tool.MacrosData.data.sYS_USERPRIV;
                                } else if (item_title == '[当前主办人部门]' || item_title == '[CUR_USER_DEPT]') {
                                    titleValue = workForm.tool.getMacrosData('SYS_DEPTNAME_SHORT')()
                                } else if (item_title == '[当前主办人上级部门]' || item_title == '[CUR_USER_DEPT_PARENT]') {
                                    titleValue = workForm.tool.getMacrosData('SYS_MANAGER2')()
                                } else if (item_title == '[主办人会签意见]' || item_title == '[MAIN_USER_SIGN]') {
                                    var data = globalData.sign;
                                    titleValue = ""
                                    for (var j = 0; j < data.length; j++) {
                                        if (data[j].opFlag == 1) {
                                            titleValue += data[j].content
                                        }
                                    }
                                } else if (item_title == '[经办人会签意见]' || item_title == '[USER_SIGN]') {
                                    var data = globalData.sign;
                                    titleValue = ""
                                    for (var j = 0; j < data.length; j++) {
                                        if (data[j].opFlag == 0) {
                                            titleValue += data[j].content
                                        }
                                    }
                                }
                            }

                            //                           判断 第二个值是字段还是类型
                            if (fromDataReject[item_value]) {//如果是字段并且是表单中字段的话
                                item_value = formdata[fromDataReject[item_value]];
                            } else {
                                if (item_value.indexOf('[') > -1) { //如果是字段并且不是表单中字段
                                    if (item_value == '[当前步骤号]' || item_value == '[CUR_PRCS_ID]') {
                                        item_value = globalData.flowRunPrcs.prcsId
                                    } else if (item_value == '[当前主办人姓名]' || item_value == '[CUR_USER_NAME]') {
                                        item_value = globalData.userName;
                                    } else if (item_title == '[公共附件名称]' || item_title == '[ATTACH_NAME]') {
                                        item_value = item_value;
                                    } else if (item_title == '[公共附件个数]' || item_title == '[ATTACH_COUNT]') {
                                        item_value = item_value;
                                    } else if (item_value == '[当前流程设计步骤号]' || item_value == '[CUR_FLOW_PRCS]') {
                                        item_value = globalData.flowRunPrcs.flowPrcs
                                    } else if (item_value == '[当前主办人角色]' || item_value == '[CUR_USER_PRIV]') {
                                        item_value = $.cookie('userPrivName') || workForm.tool.MacrosData.data.sYS_USERPRIV;
                                    } else if (item_value == '[当前主办人部门]' || item_value == '[CUR_USER_DEPT]') {
                                        item_value = workForm.tool.getMacrosData('SYS_DEPTNAME_SHORT')()
                                    } else if (item_value == '[当前主办人上级部门]' || item_value == '[CUR_USER_DEPT_PARENT]') {
                                        item_value = workForm.tool.getMacrosData('SYS_MANAGER2')()
                                    } else if (item_value == '[主办人会签意见]' || item_value == '[MAIN_USER_SIGN]') {
                                        var data = globalData.sign;
                                        item_value = ""
                                        if (data != '' && data != undefined) {
                                            for (var j = 0; j < data.length; j++) {
                                                if (data[j].opFlag == 1) {
                                                    item_value += data[j].content
                                                }
                                            }
                                        }

                                    } else if (item_value == '[经办人会签意见]' || item_value == '[USER_SIGN]') {
                                        var data = globalData.sign;
                                        item_value = ""
                                        if (data != '' && data != undefined) {
                                            for (var j = 0; j < data.length; j++) {
                                                if (data[j].opFlag == 0) {
                                                    item_value += data[j].content
                                                }
                                            }
                                        }

                                    }
                                } else { //如果是类型值的话
                                    if (item_value == '数值') {
                                        item_value = 'shu'
                                    } else if (item_value == '日期') {
                                        item_value = 'date'
                                    } else if (item_value == '时间+日期') {
                                        item_value = 'time';
                                    } else {
                                        item_value = item_value;
                                    }
                                }
                            }
                            if (titleValue == undefined) {
                                res.msg = '条件设置有误，不存在“' + item_title + '”字段，请联系系统管理员前往流程设计器修改！';
                            } else {
                                check_pass = checkTileValue(titleValue, item_con, item_value);

                            }
                            check_pass = checkTileValue(titleValue, item_con, item_value);
                            var setitem = (i + 1)
                            var reg = new RegExp('\\[' + setitem + '\\]', "g");//g,表示全部替换。

                            prcsInSet = prcsInSet.replace(reg, check_pass);
                        }


                    }
                });
                prcsInSet = covertToPrcsOutSet(prcsInSet.toLowerCase());
                if (prcsInSet.indexOf('（') > -1 || prcsInSet.indexOf('）') > -1) {
                    prcsInSet = prcsInSet.replace(/\（/g, "(").replace(/\）/g, ")");
                }
                var result = eval(prcsInSet);
                if (result == 0) {
                    res.flag = false;
                }
            }
            if (cb) {
                cb(res);
            }
        };

        function covertToFormData(formdata) {
            var data = {};
            if (formdata instanceof Array) {
                formdata.forEach(function (v, i) {
                    data[v.key] = v.value;
                });
            }
            return data;
        };

        function covertToPrcsOutSet(data) {
            data = data.replace(/or/g, '||')
            data = data.replace(/and/g, '&&')
            return data;
        };

        function checkPrcOut(formdata, fromDataReject,cb) {
            var msg = globalData.conditionDesc.split('\n')[1];
            var res = {
                flag: true,
                msg: ""
            };
            if (msg) {
                res.msg = msg;
            } else {
                res.msg = '<fmt:message code="main.th.NonConformity" />'
            }
            var prcsOut = globalData.prcsOut;
            var prcsOutSet = globalData.prcsOutSet;
            var prcsOutArr = prcsOut.split('\n');
            if (prcsOutArr.length == 1 && prcsOutSet == '') {
                prcsOutSet = '[1]'
            }
            if (prcsOutSet != "") {

                formdata = covertToFormData(formdata);


                prcsOutArr.forEach(function (v, i) {
                    if (v) {
                        if (v.indexOf('"') >= 0) {
                            v = v.replace(/"/g, "'");
                        }
                        var check_pass = 0;
                        var titleValue = '';
                        var arr_rule = v.split("'");
                        var item_title = myTrim(arr_rule[1]);
                        var item_con = myTrim(arr_rule[2]);
                        var item_value = myTrim(arr_rule[3]);
                        //用来处理 特殊情况单选框控件，无法通过id来选择到元素的情况
                        var item_pag = $('[Id="' + fromDataReject[item_title] + '"]');
                        if (item_pag.length == 0 && $('[name=' + fromDataReject[item_title] + ']').eq(0).attr('data-type') == 'radio') {
                            item_pag = $('input[name=' + fromDataReject[item_title] + ']:checked');
                        }
                        if (v.indexOf('[') <= -1) {
                            if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_USERNAME' && item_pag.attr('orgsignImg') == 1) {
                                if (item_pag.prev().find('img').attr('src') != undefined && item_pag.prev().find('img').attr('src') != '' && item_pag.prev().find('img').attr('src').indexOf('AID') >= 0) {
                                    titleValue = item_pag.prev().find('img').attr('src');
                                } else {
                                    titleValue = formdata[fromDataReject[item_title]];
                                }
                            } else {
                                titleValue = formdata[fromDataReject[item_title]];
                                //该判断为下拉菜单为下拉子菜单时，需做特殊判断处理
                                if (titleValue && titleValue.indexOf('|') > -1 && item_pag.attr('data-type') == 'select') {
                                    titleValue = titleValue.split('|')[0];
                                }
                                //该判断为宏部门列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_DEPT') {
                                    if (titleValue && titleValue.indexOf('├') > -1 || titleValue && titleValue.indexOf('┌') > -1) {
                                        titleValue = item_pag.find('option:checked').attr('deptname')
                                    }
                                }
                                //该判断为部门人员（本部门）列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_DEPT_PERSON') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏人员列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_USER') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏角色列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_PRIV_ONLY') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏辅助角色列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_PRIV_OTHER') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏流程设置所有经办人列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_PRCSUSER1') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏本步骤设置经办人列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_PRCSUSER2') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏部门主管（本部门）列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_MANAGER1') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏部门主管（上级部门）列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_MANAGER2') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏部门主管（一级部门）列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_MANAGER3') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为宏来自sql查询列表控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'macros' && item_pag.attr('datafld') == 'SYS_LIST_SQL') {
                                    if (titleValue && titleValue.indexOf('_') > -1) {
                                        titleValue = titleValue.split('_')[1];
                                    }
                                }
                                //该判断为部门选择控件 和 用户选择控件时，需对titleValue处理
                                else if (item_pag.attr('data-type') == 'deptselect' || item_pag.attr('data-type') == 'userselect') {
                                    if (titleValue && titleValue.indexOf('|') > -1) {
                                        titleValue = titleValue.split('|')[1];
                                        if (titleValue.substring(titleValue.length - 1, titleValue.length) == ',') {
                                            titleValue = titleValue.substring(0, titleValue.length - 1);
                                        }
                                    }
                                }

                            }

                        } else {
                            if (item_title == '[当前步骤号]' || item_title == '[CUR_PRCS_ID]') {
                                titleValue = globalData.flowRunPrcs.prcsId
                            } else if (item_title == '[当前主办人姓名]' || item_title == '[CUR_USER_NAME]') {
                                titleValue = globalData.userName;
                            } else if (item_title == '[公共附件名称]' || item_title == '[ATTACH_NAME]') {
                                titleValue = '';
                                for (var j = 0; j < $('#oneUploadFile .item_wordH1').length; j++) {
                                    if ($('#oneUploadFile .item_wordH1').length == 1) {
                                        titleValue = GetFileNameNoExt($('#oneUploadFile .item_wordH1').eq(j).attr('title'))
                                    } else {
                                        titleValue += GetFileNameNoExt($('#oneUploadFile .item_wordH1').eq(j).attr('title')) + ','
                                    }
                                }
                            } else if (item_title == '[公共附件个数]' || item_title == '[ATTACH_COUNT]') {
                                titleValue = $('#oneUploadFile .item_wordH1').length;
                            } else if (item_title == '[当前流程设计步骤号]' || item_title == '[CUR_FLOW_PRCS]') {
                                titleValue = globalData.flowRunPrcs.flowPrcs
                            } else if (item_title == '[当前主办人角色]' || item_title == '[CUR_USER_PRIV]') {
                                titleValue = $.cookie('userPrivName') || workForm.tool.MacrosData.data.sYS_USERPRIV;
                            } else if (item_title == '[当前主办人部门]' || item_title == '[CUR_USER_DEPT]') {
                                titleValue = workForm.tool.getMacrosData('SYS_DEPTNAME_SHORT')()
                            } else if (item_title == '[当前主办人上级部门]' || item_title == '[CUR_USER_DEPT_PARENT]') {
                                titleValue = workForm.tool.getMacrosData('SYS_MANAGER2')()
                            } else if (item_title == '[主办人会签意见]' || item_title == '[MAIN_USER_SIGN]') {
                                var data = globalData.sign;
                                titleValue = ""
                                if (data != '' && data != undefined) {
                                    for (var j = 0; j < data.length; j++) {
                                        if (data[j].opFlag == 1) {
                                            titleValue += data[j].content
                                        }
                                    }
                                }
                            } else if (item_title == '[经办人会签意见]' || item_title == '[USER_SIGN]') {
                                var data = globalData.sign;
                                titleValue = ""
                                if (data != '' && data != undefined) {
                                    for (var j = 0; j < data.length; j++) {
                                        if (data[j].opFlag == 0) {
                                            titleValue += data[j].content
                                        }
                                    }
                                }

                            }
                        }
//                           判断 第二个值是字段还是类型
                        if (fromDataReject[item_value]) {//如果是字段并且是表单中字段的话
                            item_value = formdata[fromDataReject[item_value]];
                        } else {
                            if (item_value.indexOf('[') > -1) { //如果是字段并且不是表单中字段
                                if (item_value == '[当前步骤号]' || item_value == '[CUR_PRCS_ID]') {
                                    item_value = globalData.flowRunPrcs.prcsId
                                } else if (item_value == '[当前主办人姓名]' || item_value == '[CUR_USER_NAME]') {
                                    item_value = globalData.userName;
                                } else if (item_title == '[公共附件名称]' || item_title == '[ATTACH_NAME]') {
                                    item_value = item_value;
                                } else if (item_title == '[公共附件个数]' || item_title == '[ATTACH_COUNT]') {
                                    item_value = item_value;
                                } else if (item_value == '[当前流程设计步骤号]' || item_value == '[CUR_FLOW_PRCS]') {
                                    item_value = globalData.flowRunPrcs.flowPrcs
                                } else if (item_value == '[当前主办人角色]' || item_value == '[CUR_USER_PRIV]') {
                                    item_value = $.cookie('userPrivName') || workForm.tool.MacrosData.data.sYS_USERPRIV;
                                } else if (item_value == '[当前主办人部门]' || item_value == '[CUR_USER_DEPT]') {
                                    item_value = workForm.tool.getMacrosData('SYS_DEPTNAME_SHORT')()
                                } else if (item_value == '[当前主办人上级部门]' || item_value == '[CUR_USER_DEPT_PARENT]') {
                                    item_value = workForm.tool.getMacrosData('SYS_MANAGER2')()
                                } else if (item_value == '[主办人会签意见]' || item_value == '[MAIN_USER_SIGN]') {
                                    var data = globalData.sign;
                                    item_value = ""
                                    for (var j = 0; j < data.length; j++) {
                                        if (data[j].opFlag == 1) {
                                            item_value += data[j].content
                                        }
                                    }
                                } else if (item_value == '[经办人会签意见]' || item_value == '[USER_SIGN]') {
                                    var data = globalData.sign;
                                    item_value = ""
                                    for (var j = 0; j < data.length; j++) {
                                        if (data[j].opFlag == 0) {
                                            item_value += data[j].content
                                        }
                                    }
                                }
                            } else { //如果是类型值的话
                                if (item_value == '数值') {
                                    item_value = 'shu'
                                } else if (item_value == '日期') {
                                    item_value = 'date'
                                } else if (item_value == '时间+日期') {
                                    item_value = 'time';
                                } else {
                                    item_value = item_value;
                                }
                            }
                        }
                        if (titleValue == undefined) {
                            res.msg = '条件设置有误，不存在“' + item_title + '”字段，请联系系统管理员前往流程设计器修改！';
                        } else {
                            //该判断为部门选择控件 且 条件为等于 时，调用judgeResult()方法来判断用户选择框和条件设置框字段是否相同（不论排序）
                            if (item_pag.attr('data-type') == 'deptselect' && item_con == '=' || item_pag.attr('data-type') == 'userselect' && item_con == '=') {
                                check_pass = judgeResult(titleValue, item_value)
                            }
                            //该判断为部门选择控件 且 条件为不等于 时，调用judgeResult()方法来判断用户选择框和条件设置框字段是否相同（不论排序）
                            else if (item_pag.attr('data-type') == 'deptselect' && item_con == '!=' || item_pag.attr('data-type') == 'userselect' && item_con == '!=') {
                                check_pass = !judgeResult(titleValue, item_value)
                            }
                            else {
                                check_pass = checkTileValue(titleValue, item_con, item_value);
                            }
                        }
                        var setitem = (i + 1)
                        var reg = new RegExp('\\[' + setitem + '\\]', "g");//g,表示全部替换。

                        prcsOutSet = prcsOutSet.replace(reg, check_pass);
                    }
                });
                prcsOutSet = covertToPrcsOutSet(prcsOutSet.toLowerCase());
                if (prcsOutSet.indexOf('（') > -1 || prcsOutSet.indexOf('）') > -1) {
                    prcsOutSet = prcsOutSet.replace(/\（/g, "(").replace(/\）/g, ")");
                }
                var result = eval(prcsOutSet);
                if (result == 0) {
                    res.flag = false;
                }
            }
            if (cb) {
                cb(res);
            }
        };

        //判断部门选择控件 和 用户选择控件 中用户选择字段和条件设置字段是否相同
        function judgeResult(titleValue, item_value) {
            var flag = 1
            if (titleValue !== undefined && item_value !== undefined) {
                titleValue = titleValue.split(',')
                item_value = item_value.split(',')
            }
            if (titleValue.length !== item_value.length) {
                flag = 0
            } else {
                titleValue.forEach(function (item) {
                    if (item_value.indexOf(item) === -1) {
                        flag = 0
                    }
                })
            }
            return flag;
        }


        function checkTileValue(item_value, rule, item_title) {
            var checkpass = 0;
            if (item_value != '') {
                if (typeof item_value == 'string') {
                    if (item_value.indexOf('-') > -1 || item_value.indexOf(':') > -1 || item_value.indexOf(',') > -1 || item_value.indexOf('|') > -1) {
                        var item_value = item_value
                    } else {
                        var item_value = parseFloat(item_value) || item_value;
                    }
                } else {
                    var item_value = parseFloat(item_value) || item_value;
                }


            } else {
                var item_value = item_value;
            }
            if (item_title != '') {
                if (typeof item_title == 'string') {
                    if (item_title.indexOf('-') > -1 || item_title.indexOf(':') > -1) {
                        var item_title = item_title
                    } else {
                        var item_title = parseFloat(item_title) || item_title;
                    }
                } else {
                    var item_title = parseFloat(item_title) || item_title;
                }

            } else {
                var item_title = item_title;
            }
            var date = /^(\d{4})-(0\d{1}|1[0-2])-(0\d{1}|[12]\d{1}|3[01])$/;
            var time = /^(((?!0000)[0-9]{4}-((0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-8])|(0[13-9]|1[0-2])-(29|30)|(0[13578]|1[02])-31)|([0-9]{2}(0[48]|[2468][048]|[13579][26])|(0[48]|[2468][048]|[13579][26])00)-02-29)) (20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d$/


            switch (rule) {
                case '=':
                    var reDateTime = /^(?:19|20)[0-9][0-9]-(?:(?:0[1-9])|(?:1[0-2]))-(?:(?:[0-2][1-9])|(?:[1-3][0-1])) (?:(?:[0-2][0-3])|(?:[0-1][0-9])):[0-5][0-9]:[0-5][0-9]$/;
                    if (item_title == 'shu' && !isNaN(item_value)) {
                        checkpass = 1;
                    } else if (item_title == 'date' && /^(\d{4})-(0\d{1}|1[0-2])-(0\d{1}|[12]\d{1}|3[01])$/.test(item_value)) {
                        checkpass = 1;
                    } else if (item_title == 'time' && !reDateTime.test(item_value)) {
                        checkpass = 1;
                    } else if (item_title == item_value) {
                        checkpass = 1;
                    }
                    break;
                case '!=':
                    var reDateTime = /^(?:19|20)[0-9][0-9]-(?:(?:0[1-9])|(?:1[0-2]))-(?:(?:[0-2][1-9])|(?:[1-3][0-1])) (?:(?:[0-2][0-3])|(?:[0-1][0-9])):[0-5][0-9]:[0-5][0-9]$/;
                    if (item_title == 'shu' && isNaN(item_value)) {
                        checkpass = 1;
                    } else if (item_title == 'date' && !/^(\d{4})-(0\d{1}|1[0-2])-(0\d{1}|[12]\d{1}|3[01])$/.test(item_value)) {
                        checkpass = 1;
                    } else if (item_title == 'time' && reDateTime.test(item_value)) {
                        checkpass = 1;
                    } else if (item_title != item_value) {
                        checkpass = 1;
                    }
                    break;
                case '<>':
                    if (date.test(item_title) && date.test(item_value)) {
                        if (new Date(item_title.replace(/-/g, "/")).getTime() != new Date(item_value.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (time.test(item_title) && time.test(item_value)) {
                        if (new Date(item_title.replace(/-/g, "/")).getTime() != new Date(item_value.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (item_title != item_value) {
                        checkpass = 1;
                    }
                    break;
                case '>':
                    if (date.test(item_title) && date.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() > new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (time.test(item_title) && time.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() > new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (item_value > item_title) {
                        checkpass = 1;
                    }
                    break;
                case '<':
                    if (date.test(item_title) && date.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() < new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (time.test(item_title) && time.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() < new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (item_value < item_title) {
                        checkpass = 1;
                    }
                    break;
                case '<=':
                    if (date.test(item_title) && date.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() <= new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (time.test(item_title) && time.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() <= new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (item_value <= item_title) {
                        checkpass = 1;
                    }
                    break;
                case '>=':
                    if (date.test(item_title) && date.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() >= new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (time.test(item_title) && time.test(item_value)) {
                        if (new Date(item_value.replace(/-/g, "/")).getTime() >= new Date(item_title.replace(/-/g, "/")).getTime()) {
                            checkpass = 1;
                        }
                    } else if (item_value >= item_title) {
                        checkpass = 1;
                    }
                    break;
                case 'include':
                    if (item_value == '') {
                        if (item_title == '') {
                            checkpass = 1;
                        }
                    } else {
                        item_value = String(item_value);
                        if (item_value.indexOf(item_title) > -1) {
                            checkpass = 1;
                        }
                    }
                    break;
                case 'exclude':
                    if (item_value == '') {
                        if (item_title == '') {
                            checkpass = 1;
                        }
                    } else {
                        item_value = String(item_value);
                        if (item_value != '') {
                            if (item_value.indexOf(item_title) == -1) {
                                checkpass = 1;
                            }
                        }
                    }
                    break;
            }
            return checkpass;
        };

        function myTrim(x) {
            if (x != undefined) {
                return x.replace(/^\s+|\s+$/gm, '');
            }
        };

        function getSign(runId) {
            $.ajax({
                type: 'get',
                url: '/flowProcess/getFlowRunPrecsOpFlag',
                data: {
                    runId: runId
                },
                success: function (res) {
                    var data = res.object;
                    if (data.length > 0) {
                        globalData.sign = data;
                    } else {
                        globalData.sign = '';
                    }
                }
            })
        };

        function initSign(prcsId, flowPrcs, runId) {
            $.ajax({
                type: "post",
                url: "/workflow/work/findworkfeedback",
                dataType: 'JSON',
                data: {
                    prcsId: prcsId,
                    signlock: signlock,
                    flowPrcs: flowPrcs,
                    runId: runId
                },
                success: function (obj) {
                    var user = $.cookie('userId')
                    if (obj.flag) {
                        if (obj.obj.length != 0) {
                            globalData.data = obj.obj;

                            var str = '';
                            obj.obj.forEach(function (v, i) {
                                var prcsflow = v.prcsId;
                                var avatar = v.users.avatar;
//                                    console.log(v.flowPrcs)
                                if (avatar == 0) {
                                    str += '<li id="' + v.feedId + '" flowNum="' + prcsflow + '" flowPrcs="' + v.flowPrcs + '" runId="' + v.runId + '"><div class="huiqian_touxiang"><img class="huiqian_logo" style="width: 40px;margin-top: 8px" src="../../img/user/boy.png"></div><div class="huiqian_word" style="width:175px;"><h1 style="display: inline-block;font-weight: 600;">' + v.users.userName + '</h1><h1 style="display: inline-block;font-size: 12px;margin-left: 8px;color: #999;">' + v.users.userPrivName + '</h1><div class="cesdiv"  title="' + v.content + '">' + v.content + '</div><div class="area" style="display:none"><textarea name="" id="signText" style="width:80%;height:35px"></textarea></div><div class="h2s" style="font-size: 12px;margin-top: 1px;">' + v.editTime + function () {
                                        if (prcsId == prcsflow && user == v.userId) {
                                            return '<span class="edit"><img src="/img/workflow/work/edit.png" alt=""></span><span class="del"><img src="/img/workflow/work/del.png" alt=""></span>'
                                        } else {
                                            return ''
                                        }
                                    }() + '</div></div></li>';
                                } else if (avatar == 1) {
                                    str += '<li id="' + v.feedId + '" flowNum="' + prcsflow + '" flowPrcs="' + v.flowPrcs + '" runId="' + v.runId + '"><div class="huiqian_touxiang"><img class="huiqian_logo" style="width: 40px;margin-top: 8px" src="../../img/user/girl.png"></div><div class="huiqian_word" style="width:175px;"><h1 style="display: inline-block;font-weight: 600;">' + v.users.userName + '</h1><h1 style="display: inline-block;font-size: 12px;margin-left: 8px;color: #999;">' + v.users.userPrivName + '</h1><div class="cesdiv" title="' + v.content + '">' + v.content + '</div><div class="area" style="display:none" ><textarea name="" id="signText" style="width:80%;height:35px"></textarea></div><div class="h2s" style="font-size: 12px;margin-top: 1px;">' + v.editTime + function () {
                                        if (prcsId == prcsflow && user == v.userId) {
                                            return '<span class="edit"><img src="/img/workflow/work/edit.png" alt=""></span><span class="del"><img src="/img/workflow/work/del.png" alt=""></span>'
                                        } else {
                                            return ''
                                        }
                                    }() + '</div></div></li>';
                                } else {
                                    str += '<li id="' + v.feedId + '" flowNum="' + prcsflow + '" flowPrcs="' + v.flowPrcs + '" runId="' + v.runId + '"><div class="huiqian_touxiang"><img class="huiqian_logo" style="width: 40px;margin-top: 8px" src="../../img/user/' + avatar + '"></div><div class="huiqian_word" style="width:175px;"><h1 style="display: inline-block;font-weight: 600;">' + v.users.userName + '</h1><h1 style="display: inline-block;font-size: 12px;margin-left: 8px;color: #999;">' + v.users.userPrivName + '</h1><div class="cesdiv"  title="' + v.content + '">' + v.content + '</div><div class="area" style="display:none"><textarea name="" id="signText" style="width:80%;height:35px"></textarea></div><div class="h2s" style="font-size: 12px;margin-top: 1px;">' + v.editTime + function () {
                                        if (prcsId == prcsflow && user == v.userId) {
                                            return '<span class="edit"><img src="/img/workflow/work/edit.png" alt=""></span><span class="del"><img src="/img/workflow/work/del.png" alt=""></span>'
                                        } else {
                                            return ''
                                        }
                                    }() + '</div></div></li>';

                                }

                            });
                            $('#signbox').html(str)
                            $('.huiqian').append('<div class="he huiqianhe">' + obj.obj.length + '</div>');

                        } else {
                            $('#signbox').html('')
                            globalData.data = "";
                        }
                    }
                }
            });
        };

        function subPric(source, pos) {
            var strs = new Array(); //定义一数组
            strs = source.split(pos); //字符分割
            return strs;
        };

        function otherFlowRflect(tableName, tableId, runId) {
            if (tableName && tableName != '' && tableId != '' && runId != '') {
                $.ajax({
                    type: "post",
                    url: "../../tigger/modifyFieldProperties",
                    dataType: 'JSON',
                    data: {
                        tableName: tableName,
                        id: tableId,
                        runId: runId
                    },
                    success: function (res) {
                        //console.log(res);
                    }
                })
            }
        };

        var arr = $('.formDesign input');//获取所有input
        $.each(arr, function (i, val) {
            console.log(val)
            $('input[title="projectAuto1"]').val(runId);//通过title赋值
        })
    });
</script>
<script type="text/javascript">
    var TANGER_OCX_OBJ;

    function init() {
        TANGER_OCX_OBJ = document.getElementById("TANGER_OCX");
        TANGER_OCX_OBJ.activate(true);
        if (window.navigator.platform == "Win64") {
            TANGER_OCX_OBJ.AddDocTypePlugin(".pdf", "PDF.NtkoDocument", "4.0.0.2", "../../lib/officecontrol/ntkooledocallx64.cab", 51, true);
        } else {
            TANGER_OCX_OBJ.AddDocTypePlugin(".tif", "tif.NtkoDocument", "4.0.0.2", "../../lib/officecontrol/ntkooledocall.cab", 51, true);
            TANGER_OCX_OBJ.AddDocTypePlugin(".pdf", "PDF.NtkoDocument", "4.0.0.2", "../../lib/officecontrol/ntkooledocall.cab", 51, true);
        }
        TANGER_OCX_OBJ.CreateNew("word.document");
    };

    /*
         *  func 从本地附件套红功能filename='C:\Users\gsb\Desktop\test.dot'
         *  string filename 必选  本地模板的路径
         *  bool [PromptSelect] 是否允许用户选择
         *  bool [IsConfirmConversions] 当模板文件不是WORD类型时，是否提示转换，默认true
         * */
    function red_chromatography_local() {//套红
        //AddTemplateFromLocal(filename, [PromptSelect], [IsConfirmConversions]);
        var filename = 'test.dot';
        TANGER_OCX_OBJ.AddTemplateFromLocal(filename);//此处不能为空，必须带一个参数
    };

    /*
         *  func 从url套红功能
         *  string URL 必选  远程模板文件URL
         *  bool [IsConfirmConversions] 当模板文件不是WORD类型时，是否提示转换，默认true
         * */
    function red_chromatography_url() {//套红可用，加载服务器资源下的，路径如下
        //TANGER_OCX_OBJ.AddTemplateFromURL(URL,[IsConfirmConversions]);
        var URL = '/file/pjc/test.dot';
        TANGER_OCX_OBJ.AddTemplateFromURL(URL);
    };
    /*
         * 进入或者退出保留痕迹
         * bool vbool 是否保留痕迹
         * */
    /*function TrackRevisions(vbool){
         //var vbool = $('#TrackRevisions option:selected').val();
         TANGER_OCX_OBJ.TrackRevisions(vbool);
         }*/
    /*
         * 强制进入或者退出保留痕迹
         * bool vbool 是否保留痕迹
         * */
    function EnterRevisionMode(id) {
        // var vbool = $('#TrackRevisions option:selected').val();
        var domID = document.getElementById(id);
        var vbool = domID.value;
        TANGER_OCX_OBJ.EnterRevisionMode(vbool);
    };

    /*
         * 该函数使用HTTP协议将文件保存到URL
         * string URL 处理后台保存的URL地址
         * String FileFieldName 控件文件域名称
         * string FileName 文件名
         * bool IsShowUI 是否显示进度条
         * return 提交URL之后从服务器返回的数据
         * */
    function SaveToURL() {
        //TANGER_OCX_OBJ.SaveToURL("/upload","DocFile","","NewDoc.doc",1);
        TANGER_OCX_OBJ.SaveToURL("../../upload?module=email", "file", "", "/file/pjc/test.dot", "upload_file");
    };

    /*
         * string SaveAsDocument 保存到本地的文档路径 可选
         * bool OverwriteExisting 是否覆盖现文件 可选
         * bool isPrompt 是否提示用户选择 可选
         * */
    function SaveToLocal() {//可用
        //TANGER_OCX_OBJ.SaveToLocal([SaveAsDocument], [OverwriteExisting], [isPrompt]);
        var SaveAsDocument = 'D:/test1.doc';
        TANGER_OCX_OBJ.SaveToLocal(SaveAsDocument);
    };

    //打印功能
    function doc_print() {
        //alert("a")；
        TANGER_OCX_OBJ.PrintPreview();
        TANGER_OCX_OBJ.PrintOut();

    };

    //获取地址栏参数
    var runId=getUrlParam('runId');
    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); // 构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  // 匹配目标参数
        if (r != null) return unescape(r[2]); return null; // 返回参数值
    }
    // 父调用子页面的方法
    function getStr() {
        return fadata;
    }
    function getStrr() {
        return faadata;
    }
    function getStr1() {
        return fapdata;
    }
    function getStr2() {
        return fatdata;
    }
    function getStr3() {
        return syncDeal;
    }
    function getStr4() {
        return prcsName;
    }
    function getStr5() {
        return workflowpricToArray;
    }
    function getStr6() {
        return nextFlowid;
    }
</script>
</html>